My OS is Windows 10 Pro x64, and I installed the VC14 x86 and x64 packages.
I added the php7.0.0 directory to wamp/bin/php , copied the php.ini , phpForApache.ini and wampserver.conf , and also changed the php directories and extensions in these files.
There is my wampserver.conf :
<?php $phpConf['phpIniDir'] = '.'; $phpConf['phpExeDir'] = '.'; $phpConf['phpConfFile'] = 'php.ini'; //PHP 7 needs Apache 2.4.x and doesn't works with Apache 2.2.x $phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module'; $phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll'; $phpConf['apache']['2.4']['AddModule'] = ''; ?>
It reads WAMP correctly, because when I select the php7.0.0 version, Apache httpd.conf gets this line:
LoadModule php7_module "c:/wamp/bin/php/php7.0.0/php7apache2_4.dll"
The path is correct and the dll file exists, but the Apache service does not start, and if I check the Apache extensions, then php7_module is indicated as not found (red square).
If I check the apache error log, the only one reported is
[Tue Dec 08 11: 02: 14.021018 2015] [core: warn] [pid 5008: tid 516] AH00098: pid file C: /wamp/bin/apache/apache2.4.9/logs/httpd.pid overwritten - - Fuzzy shutdown of previous Apache ?
Does anyone who successfully runs PHP 7 on a WAMP server know to fix this problem? Thanks.
php apache php-7 wampserver
tyd01
source share