This article only discusses how to install Apache + PHP3 in Windows NT 4.0 or Windows 2000.
The apachei use is apache_1_3_12_win32.exe.
Note that you must install PHP3 first. You can install it according to my documents: Install PHP3 in Windows. Note that you do not need to perform this step: 2. install the software-> 3-> f ).
I. Software Download
You can download the Apache Web Server software for Windows from the following sites:
Http://www.apache.org/dist/binaries/win32/
Ii. install Apache
1. Install and install the apacheexecutable file (for example, apache_1_3_12_win32.exe ).
You can select the installation destination. The default value is C: Program FilesApache GroupApache,
I use $ APACHE_ROOT instead of the installation destination;
2. Modify $ APACHE_ROOTconfhttpd.conf:
Port 80
Set the port number used for running Apache Web Server.
Line, IIS uses Port 80, so I changed it to Port 8080, then I am in the browser
Enter http: // localhost: 8080/to access the Apache Web Server,
Enter http: // localhost/to access IIS, so that both Web servers can use
Oh, I use $ PORT.
ServerAdmin you@your.address
Set the Administrator mailbox. When there is a problem with the server, it will send the problem to the Administrator mailbox.
I changed it to ServerAdmin hhzqq@chinaweal.com here
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
Set the document root directory. When you enter http: // localhost: $ PORT/in your browser
The server reads data from the root directory of the document. I changed it
DocumentRoot "D: HZQPHP3", which is identified by $ DocumentRoot
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
Change this to <Directory $ DocumentRoot>. Here is
<Directory "D: HZQPHP3">
DirectoryIndex index.html
Set the default document. To support php3, I changed it to DirectoryIndex.
Index.html index.htm index. php3 index. php index. phtml