Ec (2); 1. Install APACHE1.3.9 (configure httpd In the conf directory. conf file) 1. # Change BindAddress * To BindAddress127.0.0.1 # Servernamenew. host. change name to Servernamelocalhost2. let your APACHE support PHP4. Add the following sentence: ScriptAlia script ec (2); script
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)