I am having problems with Apache / PHP on Windows 8. I previously used them on XP (along with MySQL) without any problems. I have never used Windows 7.
Apache installs without problems. Everything is working fine, including all my virtual servers. PHP installs OK, the installation puts the entries in httpd.conf without errors. However, when I try to download Apache after installing PHP, Apache does not load.
I am confused by the error that Apache returns when PHP entries are included in httpd.conf:
Syntax error on line 1029 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/PHP/php5apache2_2.dll into server: The specified module could not be found.
Lines:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:\Program Files\PHP\" LoadModule php5_module "C:\Program Files\PHP\php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
(line 1029 - line LoadModule). This place for dll is definitely correct. The string syntax is inserted as PHP. I have compared the syntax with previous versions of httpd.conf that I have and it looks correct. I think the syntax error is a red herring.
I tried:
- Switch backslashes to slashes at dll location.
- Adding PHP to the path.
- Install Apache and PHP in both sequences.
- Checking permissions on the PHP folder and individual files to ensure SYSTEM read / execute.
Comment out the PHP lines and download Apache. If I comment on the LoadModule line and just leave the PHPIniDir line, it still fails. Apache seems to behave as if it cannot see the PHP directory, but I cannot understand why.
There is nothing in the Windows event log. Latest versions of PHP and Apache. I'm a little early, what to try next. Any suggestions please?
source share