Home >Backend Development >PHP Tutorial >Installation and configuration of PHP4.04+PWS under Win98_PHP tutorial

Installation and configuration of PHP4.04+PWS under Win98_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:25:37837browse


Installation and configuration of PHP4.04+PWS under Win98
....This article mainly introduces the installation of PHP4.04 and mysql3.22.32 under win98 system pws4.0. The software mentioned in this article can be downloaded from the software section of this site. .... Required software php4.04 win 32-bit installer mysql3.22 win 32-bit version shared version phpmyadmin_2.0.5 The best tool to manage MYSQL database Step 1: Download the required program, install and run the MYSQL3.22 installer.
....The download package is a ZIP file package that needs to be unpacked with tools such as WINZIP and installed by running setup.exe. The default installation directory is c:mysql. Unpack the PHP4 file package to the c:php directory. Unzip phpmyadmin to the c:admin directory. Step 2: Install database and php4.
.... First, make sure your system has PWS4 installed. If not, first find and install PWS4 on the WIN98 system CDROM. If your system is WIN95 and you need to install DCOM95, make sure your PWS4 is running normally. You can type http://localhost in the local IE to view the PWS page.
.... In the PHP directory there are 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:windowssystem.
Rename php.ini-dist to php.ini
Modify extension_dir = ./
to extension_dir = c:windowssystem
Modify;extension=php_mysql.dll
Remove the leading ";" No.
Modify
mysql.default_port = 3306
mysql.default_host = localhost


mysql.default_user = root
The original parameters in these three columns are empty.
Copy php.ini to the c:windows directory
Modify pws-php4.reg and change ".php"="[******]php4isapi.dll" to ".php"="c: phpphp4isapi.dll"
Add the line
".php3"="c:phpphp4isapi.dll"
to ensure compatibility with the original files ending with PHP3.
....Right-click the pws-php4.reg file, select Merge, and add PHP4 to the registry.
....Configure phpmyadmin_2.0.5
Find config.inc under c:admin. The php3 file is modified as follows from line 10 onwards:
$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 65
require("english.inc.php3" );Save this file for
require("chinese_gb.inc.php3");
.
Step 3 of reboot system: Test
.... Run c:mysql inmysqld-shareware.exe to start the database. You can also add this file to the system startup.
....Add a new directory admin under PWS to point to the c:adminphpMyAdmin directory, and set this directory for execution.
Open http://localhost/admin/index.php3 in IE. At this time, you should be able to connect to the MYSQL database, and you can operate the database. This indicates that the entire system is working properly. You can also create a new php file as follows
File name info.php
//Start of viewing system status file
phpinfo();?>
//End of file
When accessing this page in IE You will get the operating information about PHP.
Note. All the content in this article is run on the platform concerned. Different PHP versions may be different. When installing under WINNT, the php.ini and dll files are placed separately. Under c:winnt and c:winntsystem32.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532044.htmlTechArticleInstallation and configuration of PHP4.04+PWS under Win98.... This article mainly introduces PHP4.04 and mysql3 .22.32 Installation under win98 system pws4.0. The software mentioned in this article can be downloaded from the software section of this website...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn