PHP5.6.30, Apache2.4.x, and php5.6apache2.4

Source: Internet
Author: User

PHP5.6.30, Apache2.4.x, and php5.6apache2.4

First download https://www.apachelounge.com/download/ on Apache Official Website


Make sure your computer has been installed

 

If no installation is available, click the vc_redist_x64/86.exe file.


Download and decompress it to the folder you want.
 

Open the conf/httpd. conf file

 

This port can be modified as needed.

This is the directory where the Apache service accesses the PHP file.

 

And the location of cgi-bin.

 

Supports multiple response pages

 

Install Apache service in Windows Service and run cmd as Administrator

httpd -k install -n "apache24"

To uninstall the service

httpd -k uninstall -n "apache24"

Then start the Apache service

 

Enter localhost in the browser and press Enter.

Next, configure the PHP Environment

Download PHP http://windows.php.net/download#php-5.6 from official website

 

Copy php. ini-development from the desired directory and change it to PHP. ini. ini.

 

Open httpd. conf under Apache24 \ conf and add the following content:

# php5 supportLoadModule php5_module "F:/devloper/php-5.6.30/php5apache2_4.dll"AddHandler application/x-httpd-php .php# configure the path to php.iniPHPIniDir "F:/devloper/php-5.6.30"

In the Apache/htdocs directory, create a new file index. php with the following content:

<?php phpinfo(); ?>

Open a browser to access localhost/index. php

The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.

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.