Forum Moderators: phranque

Message Too Old, No Replies

problems installing PHP 5

on Apache 2.0.39 (Win32)

         

sebbothebutcher

8:35 pm on Aug 8, 2004 (gmt 0)

10+ Year Member



hi everybody!
i've got a problem installing PHP 5! i've had Apache and PHP previously installed (i've used FoxServ), so i thought it would be enough to just add

LoadModule php5_module "C:\FoxServ\php\php5apache2.dll"

to httpd.conf and comment out

LoadModule php4_module "C:\FoxServ\php\sapi\php4apache2.dll"

but when i tried to restart apache, microsoft management console says that it couldn't start apache...
any ideas how to get php 5 working?

coopster

8:48 pm on Aug 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There seems to be a difference in your paths now, are you sure that the
php5apache2.dll
file is in that path?

sebbothebutcher

9:06 pm on Aug 8, 2004 (gmt 0)

10+ Year Member



yes i am sure... when i installed FoxServ, the php4apache2.dll used to be in the "php/sapi" directory... but now it's just in the "php" directory...

coopster

9:16 pm on Aug 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't know if this makes any difference whatsoever, but the directory separators are slashes in my
httpd.conf
file, not backslashes.
# For PHP 5 do something like this: 
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

sebbothebutcher

9:41 pm on Aug 8, 2004 (gmt 0)

10+ Year Member



nope... doesn't make any difference... the line now looks like this

LoadModule php4_module C:\FoxServ\php\sapi\php4apache2.dll

and it works...
but if i try to change it to PHP 5 it won't start!
could it be possible that it must be done differently when using apache as a service?

coopster

10:25 pm on Aug 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I am successfully running Apache as a service with the configuration directive shown earlier. You may want to check the Apache error log to see details of what is going on.

sebbothebutcher

10:38 pm on Aug 8, 2004 (gmt 0)

10+ Year Member



well... this is the output of error.log when trying to restart it having changed the httpd.conf file!

[Mon Aug 09 00:37:18 2004] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Aug 09 00:37:18 2004] [notice] Child 480: Exit event signaled. Child process is ending.
[Mon Aug 09 00:37:18 2004] [warn] (995)Unknown error: winnt_accept: Asynchronous AcceptEx failed.
[Mon Aug 09 00:37:19 2004] [notice] Child 480: Released the start mutex
[Mon Aug 09 00:37:20 2004] [notice] Child 480: Waiting for 250 worker threads to exit.
[Mon Aug 09 00:37:20 2004] [notice] Child 480: All worker threads have exited.
[Mon Aug 09 00:37:20 2004] [notice] Child 480: Child process is exiting
[Mon Aug 09 00:37:20 2004] [notice] Parent: Child process exited successfully.

can anybody see what's going wrong?
thanks in advance!

coopster

11:23 pm on Aug 8, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have a look at my second post in Installing PHP5 Under Windows XP and Apache [webmasterworld.com]. It's msg#3, regarding the issues with Apache on Windows XP. You may need to update your
httpd.conf
accordingly.