Install and configure PHP4 + PWS in Windows9x

Source: Internet
Author: User
Tags php3 file
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 ..... The required software php4.04win32 installer mysql3.22win32 shared version phpmyadmin_2.0.5 is the best tool for managing the MYSQL database. Step 1: download the required software, install and run MYS. 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 win 32-bit 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 installation program.

The ....download package is a zip package that needs to be unlocked using the winziptool. run setup.exe to install it. 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

Find the config. inc. php3 file under c: \ admin 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 c: \ mysql \ bin \ mysqld-shareware.exe number library, you can also add this file to the system startup.
... 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.



// 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 placed under c: \ winnt and c: \ winnt \ system32 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.