Installation of PHP4.04 under Win98

Source: Internet
Author: User
Tags copy ini modify mysql php file php3 file require mysql database

The required software

php4.04 Win 32-bit installer
Mysql3.22.34 Win 32-bit version share
phpmyadmin_2.0.5 the best tool for managing MySQL databases
The first step is to download the program you want to install and run MYSQL3.22 Setup.

The download package is a ZIP file package required WinZip and other tools to unlock, run Setup.exe installation, the default installation directory is c:mysql. Unpack the PHP4 package into the c:php directory. Unlock the phpMyAdmin to the C:admin directory.

The second step is to install the database and PHP4.

First determine if your system has installed PWS4 without first finding the installation PWS4 on the WIN98 system cdrom. If your system is WIN95 also to install DCOM95, make sure your PWS4 is running normally, you can type http://localhost to view PWS page in this computer ie.

The following files are available in the PHP directory

Php.ini-dist
Msvcrt.dll
Pws-php4.reg
Libmysql.dll
Php.exe
Php4ts.dll
Php4isapi.dll
Php_mysql.dll
Copy all DLL files to your system directory such as C:windowssystem.

Rename Php.ini-dist to PHP.ini

Modify Extension_dir =./
For extension_dir = C:windowssystem

to modify; Extension=php_mysql.dll.
To remove the front ";" Resolution

Modify under the [MySQL] bar
Mysql.default_port = 3306
Mysql.default_host = localhost
Mysql.default_user = root
The three column original parameters are empty.
Copy php.ini to c:windows directory

Modified Pws-php4.reg ". php" = "[******]php4isapi.dll" to ". php" = "C:phpphp4isapi.dll"
Add ". PhP3" = "C:phpphp4isapi.dll" line,
This is to ensure that the original file with the PHP3 end of the general.

Right-click Pws-php4.reg file, select Merge, join PHP4 to the registry.

Configure phpmyadmin_2.0.5

The config.inc.php3 file is found under C:admin to modify the following from line 10th
$cfgservers[1][' host ' = ' localhost ';
$cfgservers[1][' port ' = ' 3306 ';
$cfgservers[1][' Adv_auth '] = false;
$cfgservers[1][' stduser '] = ' root ';
$cfgservers[1][' stdpass '] = ';
$cfgservers[1][' user ' = ' root ';
$cfgservers[1][' password '] = ';
$cfgservers[1][' only_db '] = ';
$cfgservers[1][' verbose '] = ';


Modify Line 65th
Require ("english.inc.php3");
Require ("chinese_gb.inc.php3");
Save this file.

Reboot system

Third Step Test

Run the C:mysql.inmysqld-shareware.exe startup number library, or you can add this file to the startup of the system.
Under PWS new directory admin point to C:adminphpmyadmin directory and set this directory to execute.
Open http://localhost/admin/index.php3 in IE this can be connected to the MySQL database, you can operate on the log library. This indicates that the entire system is working properly. You can also create a new PHP file as follows


FileName info.php


To view the system health file start

<? Phpinfo ();? >

End of File


When you visit this page in IE, you will get information about the running of PHP.

Note. All content in this article is run through the relevant platform in the text, and different versions of PHP may vary under Winnt installation php.ini and DLL files are placed under C:winnt and C:winntsystem32 respectively.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.