Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Chris Hewitt

James Mackie wrote:

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source, staticly,
not as modules.

I don't know why the USR1 signal appears to have changed, but on RH the 
nice way of restarting apache is service httpd restart. Does this work?

HTH
Chris


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

Since I installed apache from source and not an RPM I do not have an rc
file that the service command would use. I start apache in the rc.local
file. -USR1 should be the 'NICE' way to reload the configuration files
as per the apache documentation and has worked for many versions. Its
just with PHP 4.2.3 that it stops working. 



-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 12:56 AM
To: James Mackie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3


James Mackie wrote:

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that
I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source,
staticly,
not as modules.

I don't know why the USR1 signal appears to have changed, but on RH the 
nice way of restarting apache is service httpd restart. Does this
work?

HTH
Chris





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Erwin

James Mackie wrote:
 Since I installed apache from source and not an RPM I do not have an
 rc file that the service command would use. I start apache in the
 rc.local file. -USR1 should be the 'NICE' way to reload the
 configuration files as per the apache documentation and has worked
 for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.

Grtz Erwin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Rick Widmer

At 01:54 PM 10/1/02 +0200, Erwin wrote:
James Mackie wrote:
  Since I installed apache from source and not an RPM I do not have an
  rc file that the service command would use. I start apache in the
  rc.local file. -USR1 should be the 'NICE' way to reload the
  configuration files as per the apache documentation and has worked
  for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.


 From apachectl...


graceful)
if [ $RUNNING -eq 0 ]; then
 ...
 ...
else
   if $HTTPD -t /dev/null 21; then
  if kill -USR1 $PID; then
   ^

I don't think apachectl will help, since it uses kill -USR1 to do a 
graceful restart.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

Yes.. Apachectl just calls the commands that I send manually.. Which is
why I don't use it. Apachectl graceful just recalls 'kill -USR1 PID'. 

-Original Message-
From: Rick Widmer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 7:35 AM
To: Erwin; [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3


At 01:54 PM 10/1/02 +0200, Erwin wrote:
James Mackie wrote:
  Since I installed apache from source and not an RPM I do not have an
  rc file that the service command would use. I start apache in the
  rc.local file. -USR1 should be the 'NICE' way to reload the
  configuration files as per the apache documentation and has worked
  for many versions. Its just with PHP 4.2.3 that it stops working.

Is apachectl graceful an option?
apachectl resided in the apache installation dir.


 From apachectl...


graceful)
if [ $RUNNING -eq 0 ]; then
 ...
 ...
else
   if $HTTPD -t /dev/null 21; then
  if kill -USR1 $PID; then
   ^

I don't think apachectl will help, since it uses kill -USR1 to do a 
graceful restart.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread James Mackie

You are correct.. Installing from source would not delete the file..
But.. I install servers from scratch.. When installing RedHat I only
install the base packages that are required for it to boot up and
maintain the server. All server programs (Apache, MySQL, FTP, SSH, Etc),
critial libraries (Openssl, GD, Etc), and the latest Linux Kernel, are
all installed from source manually after the RedHat install is
completed. 

The other problem is that the rc files only call apachectl. Apachectl
just makes the sames calls that I do manually to control the server. So
therfore the rc files, or apachectl would still crash the server.

Does anyone else have a server setup other than myslef with that can
verify that it isn't just my servers that die on a -USR1 (graceful)
restart? Or am I just cursed in some way. :) 



-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, October 01, 2002 6:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3




James Mackie wrote:

Since I installed apache from source and not an RPM I do not have an

It would have existed before you compiled/installed from source 
(assuming apache was installed beforehand). If the httpd executable is 
in the same place then the service command should still work. At 
least, I'd be very surprised if installing from source deletes it. Does 
/etc/init.d/httpd not exist?

for many versions. Its just with PHP 4.2.3 that it stops working.

Have you managed to find the file apachectl?

Regards

Chris



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Apache 1.3.26 + PHP 4.2.3

2002-09-30 Thread James Mackie

Got a strange problem that I can't find any info on. Maybe someone can
give me some insight.

On most of my servers that are running 4.2.2 (and before) I used
'killall -USR1 httpd' to reload my apache config. Now all servers that I
install with 4.2.3 instead of 4.2.2 this shuts down apache instead of
reloading the config files. (-HUP still works as it should). 

Base server is RH7.3, Apache and PHP are compiled from source, staticly,
not as modules.

PHP is compiled as follows:

./configure --with-apache=path --with-mysql=path --with-gd
--enable-trackvars

Aside from this everything works as it should. Any insight would be
helpful. 

Thanks.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php