Reputation: 396
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:
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.
Upvotes: 1
Views: 4514
Reputation: 1
I looked all over the internet to get this fixed ... it was just a case-sensitive thing. I changed mine to:
LoadModule php7_module "c:/php/php7apache2_4.dll"
and it fixed the issue.
Upvotes: 0
Reputation: 147
You're using PHP7, VC14. So instead of php5_module
, use
LoadModule php7_module "c:/php/php7apache2_4.dll"
Result:
c:\Apache24\bin>httpd -t
Syntax OK
Upvotes: 0
Reputation: 101
LoadModule php5_module "c:/php/php7apache2_4.dll"
you should change it to:
LoadModule php7_module "c:/php/php7apache2_4.dll"
Upvotes: 6
Reputation: 396
I replaced the LoadModule with a directive to load php5apache2_4.dll from the Wamp distribution and there seem to be no problems.
Upvotes: 0