logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Desperate PHP5 and Apache config issues
Author
Ramiro



Joined: 05 Nov 2007
Posts: 2
Location: NY

PostPosted: Tue 06 Nov '07 0:01    Post subject: Desperate PHP5 and Apache config issues Reply with quote

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! Crying or Very sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 06 Nov '07 10:14    Post subject: Reply with quote

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

PostPosted: Tue 06 Nov '07 16:18    Post subject: Reply with quote

It WORKS!!!! Very Happy
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


Reply to topic   Topic: Desperate PHP5 and Apache config issues View previous topic :: View next topic
Post new topic   Forum Index -> Other Software