PHP w. Apache2

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jet316
Forum Newbie
Posts: 5
Joined: Tue Jul 25, 2006 2:55 pm

PHP w. Apache2

Post by jet316 »

I have configured apache2 for web server, install php5 & followed the steps in the install .txt as well as what is on the php.net.

When I try to start apache I am getting an error:
Sytaxerror on line 122 of C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
Cannotload C:\php-5.1.4-Win32\php5apache2.dll into server:
The specified module could not be found.

Has anyone experiance this ? How do you resolve the issue?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

what, exactly, did you add to httpd.conf?
jet316
Forum Newbie
Posts: 5
Joined: Tue Jul 25, 2006 2:55 pm

Post by jet316 »

# For PHP 4 do something like this:
#LoadModule php4_module "c:/php-5.1.4-Win32/php4apache2.dll"
# Don't forget to copy the php4apache2.dll file from the sapi directory!
AddType application/x-httpd-php .php

# For PHP 5 do something like this:
LoadModule php5_module "c:/php-5.1.4-Win32/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php-5.1.4-Win32"

****Based on what is documented on php.net

http://us2.php.net/manual/en/print/inst ... pache2.php
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Try with Apache2.0 instead of Apache2.2...
jet316
Forum Newbie
Posts: 5
Joined: Tue Jul 25, 2006 2:55 pm

Post by jet316 »

BINGO you rock! what is so different about the versions?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Last time i checked, there wasn't support for apache2.2 (Probably this has changed by now, since it has been a long time...)

Now that i come to think about it, if i'm not mistaken php5apache2_2.dll might exist.. which has the rights hooks for apache2.2...
jet316
Forum Newbie
Posts: 5
Joined: Tue Jul 25, 2006 2:55 pm

Post by jet316 »

the file exists... for some reason it just doesnt load unless there is another area to have it look to. Does it make a difference that I am running it in windows vs linux. (other than the / thing for directories)
Post Reply