Collections:
Other Resources:
Getting Errors When Starting Apache to Load PHP Module
Why am I getting errors when starting Apache server to load PHP as a module with php5apache2.dll?
✍: FYIcenter
httpd.exe: Syntax error on line 116 of C:/Program Files /Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/php-5.2.0-Win32 /php5apache2.dll into server: The specified module could not be found.
This tutorial explains why and helps you to resolve the issue.
1. Go to the PHP installation directory: C:/Program Files/php-5.2.0-Win32. You will see two files:
11/02/2006 12:41 PM 36,925 php5apache2.dll 11/02/2006 12:41 PM 36,927 php5apache2_2.dll
2. PHP installation guide tells you to use php5apache2.dll. But that's wrong. php5apache2.dll is not compatible with Apache 2.2 on Microsoft Windows. You should use php5apache2_2.dll.
3. Open Apache server configuration file again and change the LoadModule statement as:
LoadModule php5_module "C:/Program Files/php-5.2.0-Win32/php5apache2_2.dll"
PHPIniDir "C:/Program Files/php-5.2.0-Win32"
...
<IfModule mime_module>
...
AddType application/x-httpd-php .php
</IfModule>
4. Start Apache server again. You will no problem now.
2016-07-10, ≈21🔥, 3💬
Popular Posts:
Can I remove startup application "DLG.exe - Modem Digital Line Detection" to speedup my computer and...
How to remove quickset.exe from the startup application list to gain performance and reduce security...
What is service "AEADIFilters" and program "AEADISRV.EXE" on Windows Vista? "AEADIFilters" is a syst...
What is "BitLocker Drive Encryption Service" in my Windows XP service list? And how is "BitLocker Dr...
I get the message "cyberlink powercinema resident program has stopped working" on startup on my Dell...