Apache2 and PHP5 installation Configure the most streamlined configuration steps under Windows

Source: Internet
Author: User

Windows most streamlined configuration step 1. Download and install PHP5, unzip directly, such as extract to d:/php5.6.9. (see Php5apache2_4.dll in the directory for apache2.4) 2. Download and install the Apache2 ( download a non-MSI-formatted installation package and install it through the cmd command line for easy troubleshooting of installation errors) (1) Run cmd press ENTER (2) to switch to the Apache root directory: such as CD C:\apache\bin press enter</div> (3) Input: Httpd-k Install     Press Enter3. Modify the PHP configuration file php.ini (1) Set Short_open_tag = on to enable Apache to support PHP short label, that is <??>. (2) Set DATE.TIMEZONE=UTC setting time zone (3) setting to turn on MySQL extension=php_mysql.dll (MySQL module, can access MySQL database after opening) extension=php_mysqli.dll (MySQL module)4. Modify the Apache configuration file httpd.conf (1) Settings ServerRoot (2) Set PHP module Phpinidir "d:/php5.6.9/" LoadModule php5_module "d:/ Php5.6.9/php5apache2_4.dll "FindAddType application/x-compress. ZAddType application/x-gzip. gz. tgzafter addingAddType application/x-httpd-php. php5. Start httpd notes from the command line: NETSTAT-ANB View port number usage

Apache2 and PHP5 installation Configure the most streamlined configuration steps under Windows

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.