Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Desperate PHP5 and Apache config issues |
|
Author |
|
Ramiro
Joined: 05 Nov 2007 Posts: 2 Location: NY
|
Posted: Tue 06 Nov '07 0:01 Post subject: Desperate PHP5 and Apache config issues |
|
|
Win XP SP2, ISS is uninstalled and Apache is on port 80
When I try to start Apache, I get this error message in the command box:
“Httpd.exe: Syntax error on line 115 of C:/Program files/Apache2.2/conf/httpd.conf: Cannot load C:/php/php5apache2.dll into server: the specified module could not be found.”
In the Apache httpd.conf file I have these directives:
Code: | LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir “C:\php\”. | If I disable these, then Apache DOES start, but php won't work. Why can't Apache find the php files?
From reading some other posts here, I also added this to the Apache httpd.conf file:
Code: | <Directory "C:/Program Files/PHP/">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory> |
PHP details:
I installed php5 (php-5.2.4-Win32.zip) and copied the contents into a "C:/php" folder. Next I copy/renamed the “php.ini-recomended” to “php.ini” and I activated these:
Code: | extensions_dir = “c:\php\ext"
Extension=php_imap.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll |
The "php5apache2.dll" file IS definitly in the c:/php folder. (And for good measure I also stuck a copy in the c:/php/ext folder.)
I've checked my syntax and paths over and over. I also set the Environment Variables in the System Properties to include the path: ;c\php.
Before I give up and resign myself to IIS & .asp - can anyone save my sanity?
Thanks in advance! |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 06 Nov '07 10:14 Post subject: |
|
|
Do not use php5apache2.dll but php5apache2_2.dll than it will work.
php5apache2.dll is for Apache 2.0.x
and php5apache2_2.dll for 2.2.x |
|
Back to top |
|
Ramiro
Joined: 05 Nov 2007 Posts: 2 Location: NY
|
Posted: Tue 06 Nov '07 16:18 Post subject: |
|
|
It WORKS!!!!
Changing it to php5apache2_2.dll did the trick.
Thank you so much for that advice, and thank you for moving my post to the correct forum.
Now the php fun can begin..! |
|
Back to top |
|
|
|
|
|
|