Pws|window This paper mainly introduces the installation of PHP4.04 and mysql3.22.32 under Win98 system pws4.0. The software in this paper can be downloaded from the Software section of this website.
.... The required software
php4.04 Win 32-bit installer
Mysql3.22 Win 32-bit version share
phpmyadmin_2.0.5 the best tool for managing MySQL databases
The first step: Download the required program, install the Run MYSQL3.22 installer.
.... 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.
Step Two: Install 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:\windows\system\.
Rename Php.ini-dist to PHP.ini
Modify Extension_dir =./
For extension_dir = c:\windows\system\
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:\\php\\php4isapi.dll"
Increase
". PhP3" = "C:\\php\\php4isapi.dll"
Line, this is to ensure that with the original PHP3 end of the file's 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
Step Three: Test
.... Run the C:\mysql\bin\mysqld-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:\admin\phpMyAdmin 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:\Winnt\System32 respectively.
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.