To install APACHE+PHP3 under Windows

Source: Internet
Author: User
Tags apache download iis win32 port number root directory
Apache|window 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 have to install PHP3 Oh, you can install according to My Documents: Install PHP3 under Windows, note that do not need to do this step: II, Software Installation->3->f).
First, software download
You can download the Windows version of the Apache WEB Server software from the following sites:
http://www.apache.org/dist/binaries/win32/
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
You can choose to install the destination, the default is C:\Program Files\apache Group\apache,
I use $apache_root to replace the installation destination;
2, modify the $apache_root\conf\httpd.conf:
Port 80
Set the port number used by the Apache Web Server runtime, because my IIS is also being shipped
OK, IIS uses the 80 port number, so I changed it to port 8080, and I was in the browser
Enter http://localhost:8080/to access the Apache Web Server server.
You can access IIS when you enter http://localhost/, so that two Web servers can use
Oh, I used the $port logo.
ServerAdmin you@your.address
Set up administrator's mailbox, when the server problem, it will send the problems that appear to the administrator mailbox
, I've changed it to ServerAdmin hhzqq@chinaweal.com.
DocumentRoot "C:/Program Files/apache group/apache/htdocs"
Set the document root directory, when you enter http://localhost on the browser: $PORT/, Service
The device reads the data from the root of the document, and I change it to
DocumentRoot "D:\HZQ\PHP3", I use $documentroot logo
<directory "C:/Program files/apache Group/apache/htdocs" >
Change this to <directory $DocumentRoot, I'm here for
<directory "D:\HZQ\PHP3" >
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, you should also $apache_root\conf\httpd.conf file in the end of a similar
Paragraph words:
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, after the Apache installation in the Start menu group has a shortcut, run install Apache as a service,
In this way, there is a service in NT called Apache, which can be used to start or stop the Apache service.
5, start the Apache service, finished loading, I wish you good luck.

Report:
Apache Download URL
http://www.apache.org/dist/binaries/win32/



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.