PHP installation tips: NT + Apache + PHP3

Source: Internet
Author: User
Tags ftp port number

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. For more information about how to install PHP3, see the previous article.
Ii. install Apache
1. Double-click the apacheexecutable file (such as apache_1_3_12_win32.exe) to install it. You can select the installation destination. The default value is C: Program FilesApache GroupApache.
2. Modify C: program filesApache GroupApacheconfhttpd. conf: Port 80.
Set the Port number used when Apache Web Server is running. Because IIS is running here, IIS uses Port 80, so I changed it to Port 8080, at this time, I enter http: // localhost: 8080/in the browser to access the Apache Web Server, and enter http: // localhost/to access IIS, in this way, both Web servers can be used. Note that some port numbers that have been used by other applications cannot be used. For example, the Telnet port number is 23, the FTP port number is 21, and the DNS port number is 53.
ServerAdmin you@your.address set administrator mailbox, when the server problems, it will send the problem to the Administrator mailbox, I changed it to pert@21cn.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
Set the document root directory. When you enter http: // localhost: PORT Number/in the browser, the server reads data from the document root directory, you can also change it to your favorite directory, for example, DocumentRoot "D:/phproot ".
 
Note: If you want to change the path specified by DocumentRoot, make the same changes in both httpd. conf and httpd. conf.
 
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
Change this to <Directory specified by DocumentRoot>. Here is
<Directory "D:/phproot">
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
3. In order to use PHP, add the following content to the end of the C: program filesApache GroupApacheconfhttpd. conf file:
ScriptAlias/php3/"c:/php3 /"
AddType application/x-httpd-php3. php3. php. phtml
Action application/x-httpd-php3 "/php3/php.exe"
Note c:/php3/should be changed to your PHP Directory and use/instead.
4. After Apache is installed, run Install Apache as a service in the Start Menu group. In this way, an Apache service is added to the NT service, it can be used to start or stop the Apache service.
5. Start the Apache service. Good luck.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.