Page 1 of 1
problem installing php 4.3.1 on apache (windows) 2.0.44
Posted: Sat Feb 22, 2003 10:38 am
by termi
i have a problem installing php 4.3.1 on apache (windows) 2.0.44,
when it comes to adding the handler and the module to the httpd config file, apache will not restart, citing the following error
syntax error on line 1022 of d:/program files/apache group/apache/conf/httpd.conf:
cannot load d:/php/sapi/php4apache2.dll into server: <126> the specified module could not be found:
now ive tried moving the dll into other locations, using ~1 type 8 char dir listings cause i thought it might be choking on the spaces, heres whats in my httpd file regarding it.
Code: Select all
LoadModule php4_module "d:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
can anyone tell me whats wrong with it ? ive got cgi & mysql working fine with only a minimum of fuss, php just doesnt seem to wanna cooperate
thanks in advance,
Tim Grant
email : timgrant_at_optusnet.com.au
Posted: Sat Feb 22, 2003 11:53 am
by volka
can php4ts.dll be found, too?
This means either copy/moving it to the system directory or adding the location to the system-PATH.
Posted: Sat Feb 22, 2003 11:08 pm
by termi
i assume its finding php4ts.dll, as the error when restarting apache only says about php4apache2
Posted: Sun Feb 23, 2003 4:06 am
by volka
nevertheless this could be the error. Apache only knows about php4apache2.dll beeing loaded, so if anything went wrong it will moan about this .dll
http://www.php.net/manual/en/install.apache2.php wrote: If you would like to use PHP as a module in Apache 2.0, be sure to move php4ts.dll to winnt/system32 (for Windows NT/2000) or windows/system32 (for Windows XP), overwriting any older file.
Posted: Sun Feb 23, 2003 4:08 am
by termi
yep ive already dumped everything from /extentions /dlls
and the php4ts.dll into windows/system32

Posted: Sun Feb 23, 2003 4:13 am
by volka
hmm..
LoadModule php4_module "d:/php/sapi/php4apache2.dll"
maybe without the quotes? I've never tried it this way.
Posted: Sun Feb 23, 2003 5:56 am
by termi
heres something odd, i try loading php4apache.dll and it loads fine, php4apache2.dll and it doesnt... anyone know why ?
Posted: Sun Feb 23, 2003 9:51 am
by volka
what does
tell you about the apache version?
You might also enable
mod_info for your apache.
In your httpd.conf is a line
Code: Select all
#LoadModule info_module modules/mod_info.so
remove the comment sign. Same with
Now search the section
and remove the comment signs from all lines of that section.
Code: Select all
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
Allow from might be set to
localhost.
Now call
http://localhost/server-info
Posted: Sun Feb 23, 2003 10:55 am
by termi
wait a sec, if phpinfo works, doesnt that mean php is working ?
i read thru the phpinfo and didnt see anything that stood out...
Posted: Sun Feb 23, 2003 4:56 pm
by volka
the question was (still is

) which version of apache you really have...
Posted: Sun Feb 23, 2003 10:02 pm
by termi
ahh okay hehe
php version :: 4.3.1 (According to phpinfo)
Server Version: Apache/1.3.27 (Win32) PHP/4.3.1 (according to server-info)
Posted: Mon Feb 24, 2003 3:06 am
by volka
then it's perfectly normal that you have to use php4apache.dll instead of php4apache2.dll

Posted: Mon Feb 24, 2003 8:09 am
by termi
oh... <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span>...
i could have sworn i installed apache2, any idea why i didnt ?
meh, sweet, thx for point out the obvious man, i couldnt seem to work out what was up
