PHP4.04 + PWS installation and configuration under Win98

zhaozj2021-02-11  258

PHP4.04 PWS installation and configuration under Win98

.... This article mainly introduces the installation of PHP4.04 and MySQL3.22.32 in the WIN98 system PWS4.0. The software drawn in the article can be downloaded on the software column of this site.

.... required software

PHP4.04 Win32-bit installer mysql3.22 Win 32-bit shared version phpMyadmin_2.0.5 Manages the best tool for mysql database

Step 1: Download the desired program, install the mysql3.22 installer.

.... Download Pack is a zip file package needs to unwave with Winzip and other tools. Run setup.exe installation, the default installation directory is C: / mysql. Under the PHP4 file packet to the C: / PHP directory. Unlock phpMyAdmin to the C: / Admin directory.

Step 2: Install the database and PHP4.

.... First, determine if your system is installed PWS4 If you do not find the installation PWS4 on the Win98 system CDROM. If your system is Win95, you have to install DCOM95, make sure your PWS4 is running normally, you can type http: // localhost in this unit's IE to view the PWS page.

.... In the PHP directory, there is a file

PHP.INI-DIST MSVCRT.DLL PWS-PHP4.REG libmysql.dll php.exe php4tsts.dll php4isapi.dll php_mysql.dll

.... Put all DLL files to your system directory such as C: / Windows / System.

Rename php.ini-dist of PHP.ini

Modify EXTENSION_DIR =. / EXTENSION_DIR = C: / Windows / System /

Modify; extension = php_mysql.dll removes the front ";"

Modify mysql.default_port = 3306mysql.default_host = localhostmysql.default_user = root_host = localhostmysql.default_user = root This three column original parameters are empty. Copy php.ini to c: / windows directory

Modify PWS-PHP4.REG change ".php" = "[*****] // php4isapi.dll" is ".PHP" = "c: //php//php4isapi.dll" Add ".php3" = "C: //php//php4isapi.dll" line, which is to ensure universal with the original file ending with PHP3.

.... Right click on the PWS-PHP4.REG file, select the merge, join the PHP4 to the registry.

.... Configuring phpMyAdmin_2.0.5

Find the config.inc.php3 file in C: / Admin to modify the following $ 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'] = '; modification Chapter 65 Require ("English.inc.php3"); for Require ("Chinese_Gb.inc.php3"); save this file.

Reboot system

Step 3: Test

.... Run C: /Mysql/bin/mysqld-shareware.exe Start number of list, you can also add this file to the system's startup. .... Added a directory admin point under PWS to point to the C: / Admin / phpMyAdmin directory, set this directory to execution. Open http: //localhost/admin/index.php3 in IE This time you can connect to the MySQL database, you can operate logs. This indicates the entire system to work properly. You can also create a PHP file as follows

File name info.php

/ / View system status files //

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

Note. Everything in this article runs on the platform in the platform. Different PHP versions may differ from PHP.INI and DLL files in C: / Winnt and C: / Winnt / System32 when they are installed in WinNT. under.

转载请注明原文地址:https://www.9cbs.com/read-4113.html

New Post(0)