1. install APACHE1.3.9 (configure the httpd. conf file in the conf directory) 1. # change BindAddress * to BindAddress127.0.0.1 # change Servernamenew. host. name to Servernamelocalhost2. let your APACHE support PHP4.
1. install APACHE1.3.9 (configure the httpd. conf file in the conf directory)
1.
# Change BindAddress * to BindAddress 127.0.0.1
# Change Servername new. host. name to Servername localhost
2.
Let your APACHE support PHP4. add the following sentence:
ScriptAlias/php4/"C:/php4 /"
AddType application/x-httpd-php4. php
AddType application/x-httpd-php4. php3
AddType applications/x-httpd-php4. php4
Action application/x-httpd-php4 "/php4/php.exe"
3.
Set the Apache virtual directory and add the following lines:
Alias/test/"c:/php3/test /"
Alias/jjjj/"d:/timenet /"
4.
Add the default startup document:
DirectoryIndex index.html
DirectoryIndex index.htm
DirectoryIndex index. php
DirectoryIndex index. php3
DirectoryIndex index. php4
5.
Test file info. php:
<? Phpinfo ();?>
Enter http: // localhost/info. php in the browser
、Php4installation (php-4.0.2pl2-win32.zip)
1. decompress the package to c: php4.
2. copy all dll files in the directory to c; do not overwrite the existing dll files in winntsystem32. Copy the php.exe and php. ini-dist files in the directory to c: winnt;
3. rename winntphp. ini-dist to php. ini and find it.
Extension_dir = c: php4
Extension = php_zlib.dll
Extension = php_ldap.dll
Extension = php_zlib.dll
Extension = php_calendar.dll
Extension = php_exif.dll
Extension = php_ftp.dll
Extension = php_mssql70.dll (do not add this item, no MSSQL7.0)
Extension = php_imap.dll
If yes, remove the semicolon. if not, add the semicolon. This part is prone to errors because an invalid or nonexistent php _ *. dll file is specified in the php. ini file. loading these error messages may cause the browser to fail to find the server.
4. other PHP. INI settings:
Asp_tags = On; ASP-style tags are allowed
Upload_max_filesize = 2097152; maximum size of the uploaded file (about mysql settings)
Mysql. default_host = localhost;
Mysql. default_user = root;
Mysql. default_password = yourpasswd;
(When you use the include function, only files in the specified directory can be included)
Include_path = path1; path2; path3 ....
(Only php files under the c: php4est directory can be executed)
Doc_root = c: php4est
3. install mysql(mysql-3.23.27-beta-win.zip)
1. install mysql first. the default installation path is c: mysql.
2. open run input C: mysqlinmysqld-nt.exe? Install
3. open "administrative tools"-> "services", find the "mysql" service, and start it. Restart windows2000