apache| Introduction This article only discusses how to install APACHE+PHP3 under Windows NT 4.0 or Windows 2000.
I use Apache for Apache_1_3_12_win32.exe.
Note that you must first install PHP3 Oh, about PHP3 installation, you can check the related articles described earlier.
Second, the installation of Apache
1, double-click the download of the Apache executable file (such as Apache_1_3_12_win32.exe) for installation, installation of the time you can choose to install the destination, the default is C:\Program Files\apache Group\apache.
2, modify C:\program files\apache Group\apache\conf\httpd.conf:port 80
Set the port number to use for the Apache WEB Server runtime, because IIS is running here, IIS uses the 80 port number, so I changed it to port 8080, when I entered http://localhost:8080/on the browser To access the Apache Web server server, you can access IIS when you enter http://localhost/, so two WEB servers are available. Note that some of the port numbers that have been used by other applications are not available to us, for example, Telnet's port number is 23,ftp port number for 21,dns 53, and so on.
ServerAdmin You@your.address set up the administrator mailbox, when the server problems, it will send the problem to the administrator mailbox, I changed it to the pert@21cn.com
DocumentRoot "C:/Program Files/apache group/apache/htdocs"
Set the document root directory, when you enter the Http://localhost:PORT port number/On the browser, the server reads the data from the document root, and you can change it to your favorite directory, for example: DocumentRoot "D:/phproot".
Note: If you want to make changes to the path specified by DocumentRoot, the same changes will be made to the same place httpd.conf two.
<directory "C:/Program files/apache Group/apache/htdocs" >
Change this to the directory specified by <directory documentroot.
<directory "D:/phproot" >
DirectoryIndex index.html
Set the default document, in order to support PHP3, I changed it to DirectoryIndex.
index.html index.htm index.php3 index.php index.phtml
3, in order to use PHP, it should also be in the C:\program files\apache group\apache\conf\httpd.conf file with a similar following paragraph:
scriptalias/php3/"c:/php3/"
AddType application/x-httpd-php3. php3. php. phtml
Action application/x-httpd-php3 "/php3/php.exe"
Note that c:/php3/should be changed to your PHP directory, and it should be used/instead of \.
4, Apache installed in the Start menu group has a shortcut, run install Apache as a service, so that in the NT services in a more than one called Apache service, with it can start or stop the Apache service.
5, start the Apache service, finished loading, I wish you good luck.
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.