Php4.04 + PWS installation and configuration under Win98

Source: Internet
Author: User
Tags php3 file win32 installer

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

  1. Php4.04 Win32 Installer
  2. Mysql3.22 Win 32-bit shared Edition
  3. 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:

  1. PHP. ini-Dist
  2. Msvcrt. dll
  3. Pws-php4.reg
  4. Libmysql. dll
  5. Php.exe
  6. Php4ts. dll
  7. Php4isapi. dll
  8. 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.

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.