Page 1 of 1
PHP w. Apache2
Posted: Tue Jul 25, 2006 3:07 pm
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?
Posted: Tue Jul 25, 2006 3:35 pm
by feyd
what, exactly, did you add to httpd.conf?
Posted: Tue Jul 25, 2006 3:40 pm
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
Posted: Tue Jul 25, 2006 3:59 pm
by timvw
Try with Apache2.0 instead of Apache2.2...
Posted: Tue Jul 25, 2006 4:18 pm
by jet316
BINGO you rock! what is so different about the versions?
Posted: Wed Jul 26, 2006 1:08 am
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...
Posted: Wed Jul 26, 2006 7:39 am
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)