I have been having trouble getting PHP to install on my 64-bit Win 7 machine with Apache. I'm new to installing software that doesn't come shrink-wrapped and I have run out of useful docs/links to read.
Here is what I have done:
- Installed Apache 2.4.18 win64 (which is built with VC14) from Apache Lounge. This works - my browser says "It works!" when I visit my docroot.
- Downloaded the VC14 x64 Thread Safe (2016-Jan-06 23:30:09) PHP zip from windows.php.net and extracted it to c:/php.
- Added LoadModule php5_module "c:/php/php7apache2_4.dll" to httpd.conf.
- Downloaded VC_redist64.exe (version 14.0.23506) from Microsoft and installed it.
Tried httpd and I get:
c:\Apache24\bin>httpd httpd: Syntax error on line 178 of C:/Apache24/conf/httpd.conf: Can't locate API module structure `php5_module' in file C:/php/php7apache2_4.dll: No error
I know I need to add/adjust more in httpd.conf and perhaps php.ini too, but all the help I have found on the web suggests that the problem is elsewhere.
LoadModule php5_module "c:/php/php7apache2_4.dll"
Is it as simple as the missing directory seperator i.e.LoadModule php5_module "c:/php/php7/apache2_4.dll"
– RiggsFolly