Installing Apache installation Apache

Source: Internet
Author: User
First stop the machine's IIS (if it is started, because the default installation of Apache is also 80 port, the non-stop conflict)
In the official website of Apache download to Apache_2.2.3-win32-x86-no_ssl, double-click installation, installation should not be installed with the path of a space can be put under c:\apache2
Launch Apache to enter http://localhost in IE if you see a page that says it works notes that APACEH is working properly
2. Installing PHP5
Download the PHP official website to Php-5.2.0-win32.zip, unzip the directory name to PHP, copy to c \
Rename the php.ini-dist in PHP directory to php.ini Copy to C:\Windows (or: \WINNT depending on the operating system), copy Php5ts.dll and Libmysql to C:\Windows\System32
3. Allow Apache to run PHP programs
Modify the C:\apaceh2\conf\httpd.conf file
In the next line of #loadmodule Ssl_module modules/mod_ssl.so, add
* * (Note If your Apache is version 2.2 plus the following sentence)
LoadModule Php5_module C:/php/php5apache2_2.dll
(Note If your Apache is version 2.0 plus the following sentence)
LoadModule Php5_module C:/php/php5apache2.dll
On the next line of AddType Application/x-gzip. GZ tgz Plus
AddType application/x-httpd-php. php
Save
Write the simplest PHP page with just one line of code
Save As Test.php put this file in

The above describes the installation Apache installation Apache, including the installation of Apache content, I hope the PHP tutorial interested in a friend helpful.

  • 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.