php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11137 apache doesn't start with php, but does RESTART with php
Submitted: 2001-05-27 08:57 UTC Modified: 2001-10-20 23:09 UTC
From: niekvs at yahoo dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.5 OS: linux (cobalt raq3)
Private report: No CVE-ID: None
 [2001-05-27 08:57 UTC] niekvs at yahoo dot com
Hello, 

I'm getting a big headache from this problem i've been trying to solve the past 3 days. I don't know if it's a bug, but no one has been able to help me, so i think it might be. My server is a cobalt RaQ3, but i installed my own apache in /usr/local/apache/ (so i didn't mess with the pre-installed apache). It's version 1.3.17. The other pre-installed apache is running too, but without PHP and on another port. It's not of any use, but if i hadn't done it like this, i would have ruined the cobalt stuff.

I installed PHP4.0.5 (as DSO module), the following way: 

== 
./configure --with-mysql=/usr --with-apxs=/usr/local/apache/bin/apxs 
== 

The thing is: when i start apache: 
== 
/usr/local/apache/bin/apachectl start 
== 

It tells me apache is running. BUT, when i do ps aux, it's NOT running at all (no httpd's). There's nothing in Apache's error_log (with debug level 'debug'). All it shows is this:

==
[Sun May 27 07:20:11 2001] [info] mod_unique_id: using ip addr 209.217.52.25
== 

Then, the weird thing: when i comment-out all PHP related stuff from httpd.conf, i CAN start apache (the above way).. and if i then un-comment the PHP lines again (while apache is still running), and then RESTART apache: 
== 
/usr/local/apache/bin/apachectl restart 
== 

Then it DOES WORK! With PHP, mysql, everything!

And now, the error_log shows this:
==
[Sun May 27 07:16:31 2001] [notice] SIGHUP received.  Attempting to restart
[Sun May 27 07:16:31 2001] [info] mod_unique_id: using ip addr 209.217.52.25
[Sun May 27 07:16:32 2001] [notice] Apache/1.3.17 (Unix) PHP/4.0.5 Resin/1.2.5 configured -- resuming normal operations
==

So.. why is this happening like this? Why does it work with a RESTART, and not with a START command? And what can i do about it? I have Apache 1.3.17. 

I used to have PHP4.0.3, and that worked without any of these problems.

If you know anything that might help, please let me know! Also send the answer to my email address, please (niekvs@yahoo.com). 

Thanks a lot in advance!! 

Niek 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-03 06:34 UTC] sniper@php.net
Please try the latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

You could also try to change the order of the modules
in httpd.conf (what is Resin/1.2.5 ?)

--Jani

 [2001-06-23 00:14 UTC] sniper@php.net
This is most likely the same problem that the other
bug reports on Cobalt raq are about.

 [2001-10-20 23:09 UTC] sniper@php.net
Should be fixed in CVS.

--Jani

 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 09:06:03 2022 UTC