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.