Php4.04 + PWS installation and configuration under Win98
... This document describes how to install php4.04 and mysql3.22.32 in Win98 pws4.0. All the software involved in this article can be downloaded from the software section on this site.
... Required software
- Php4.04 Win32 Installer
- Mysql3.22 Win 32-bit shared Edition
- Phpmyadmin_2.0.5 is the best tool for managing MySQL databases.
Step 1: download the required program and install and run the mysql3.22 Installer.
The ....zip package is a zip package that needs to be removed using the winziptool. Run setup.exe to install the package. The default installation directory is C:/MySQL. Unpack the PhP4 file package to the C:/PHP Directory. Unbind phpMyAdmin to the C:/Admin directory.
Step 2: Install the database and PhP4.
... First, check whether your system has installed pws4. If not, find and install pws4 on the CDROM of Win98. If your system is Win95 and you want to install dcom95, make sure that your pws4 is running properly. You can type http: // localhost in IE on the local machine to view the PWS page.
... The PHP Directory contains the following files:
- 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:/Windows/system /.
Rename PHP. ini-Dist to PhP. ini.
Modify extension_dir = ./
Extension_dir = C:/Windows/system/
Modify; Extension = php_mysql.dll
Remove ";" from the front
In the [MySQL] Bar, modify
MySQL. default_port = 3306
MySQL. default_host = localhost
MySQL. default_user = root
The original parameters in the three columns are empty.
Copy PHP. ini to the C:/Windows directory.
Modify pws-php4.reg change ". PHP "=" [*******] // php4isapi. DLL "is ". PHP "=" C: // PHP // php4isapi. DLL"
Add
". Php3" = "C: // PHP // php4isapi. dll"
Line. This is to ensure that it is common to the original file ending with php3.
... Right click the pws-php4.reg file, select merge, add PhP4 to the Registry.
... Configure phpmyadmin_2.0.5
Under C:/admin, find the config. Inc. php3 file and modify it from row 10th as follows:
$ Incluservers [1] ['host'] = 'localhost ';
$ Export servers [1] ['Port'] = '000000 ';
$ Incluservers [1] ['adv _ auth'] = false;
$ Incluservers [1] ['stduser'] = 'root ';
$ Incluservers [1] ['stdpass'] = '';
$ Incluservers [1] ['user'] = 'root ';
$ Login servers [1] ['Password'] = '';
$ Incluservers [1] ['only _ db'] = '';
$ Define servers [1] ['verbose '] = '';
Modify row 65th
Require ("English. Inc. php3 ");
Require ("chinese_gb.inc.php3 ");
Save the file.
Reboot system
Step 3: Test
... Run the C:/MySQL/bin/mysqld-shareware.exe startup library, you can also add this file to the startup of the system.
... Add the directory admin under PWS to point to the C:/admin/phpMyAdmin directory and set this directory to run.
Open http: // localhost/admin/index. php3 in IE and connect to the MySQL database. You can perform operations on the base. This indicates that the entire system can work normally. You can also create a new PHP file as follows:
File Name info. php
// View the system status file. <? Phpinfo ();?> // End the file |
When you access this page in IE, you will get the PHP running information.
Note. all content in this article is run on the relevant platform in this article. Different PHP versions may be different when PHP is installed in winnt. INI and DLL files are stored in C:/WINNT and C:/winnt/system32.