The company needs to run php under Win7. Since it has not been configured with a development environment under Win for a long time, I took a detour and recorded it.
Operating system: Win7_x64
Apache version: httpd-2.4.18-win64-VC11.zip
Download address: http://www.apachelounge.com/download/VC11/binaries/httpd-2.4.18-win64-VC11.zip
PHP version: PHP 5.6 (5.6.19) VC11 x64 Thread Safe
Download address: http://windows.php.net/downloads/releases/php-5.6.19-Win32-VC11-x64.zip
(Due to blindness, I downloaded 32-bit php, and then Apache couldn’t get up. There is no error log, which leads to a long time of tossing! )
VC++ runtime library: Visual C++ Redistributable for Visual Studio 2012
Download address: https://www.microsoft.com/en-us/download/details.aspx?id=30679
Add the following 2 lines to httpd.conf
LoadModule php5_module “d:/data/apps/php5.6.19/php5apache2_2.dll”
PHPIniDir "d:/data/apps/php5.6.19"
The above introduces how to configure the PHP running environment under Win7, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.