Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

iTools

Re: Weird problem with httpd.conf save

To: <itools@xxxxxxxxxxxxxxx>
Subject: Re: Weird problem with httpd.conf save
From: <samtools@xxxxxxxx>
Date: Wed, 30 Apr 2003 06:21:03 -0700
I almost positively absolutely believe that just copying Apache's conf file
has no effect on the web server. And in pursuit of identifying the problem
in question this should be kept in mind.

My best guess is the httpd.conf file was edited and errors were introduced
and apache was NOT restarted. Later (possibly much later) our unsuspecting
web server admin copied the file and THEN restarted apache.

There is just no way to get Apache to apply changes from it's conf file
without restarting Apache.

Watch:

### Check to see if httpd is running:

[g3p1:/etc/httpd] root# ps ax | grep httpd
  474  ??  Ss     0:03.33 /usr/sbin/httpd -DSSL
  616  ??  S      0:03.94 perl -U /Library/WebServer/tenon/admin/httpd.pl
  671  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  726  ??  S      0:00.24 /usr/sbin/httpd -DSSL
  727  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  728  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  729  ??  S      0:00.19 /usr/sbin/httpd -DSSL
  736 std  S+     0:00.00 grep httpd

# Copy httpd.conf and check httpd is running:

[g3p1:/etc/httpd] root# cp httpd.conf httpd.conf.tmp_hold
[g3p1:/etc/httpd] root# ps ax | grep httpd
  474  ??  Ss     0:03.33 /usr/sbin/httpd -DSSL
  616  ??  S      0:03.94 perl -U /Library/WebServer/tenon/admin/httpd.pl
  671  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  726  ??  S      0:00.24 /usr/sbin/httpd -DSSL
  727  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  728  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  729  ??  S      0:00.19 /usr/sbin/httpd -DSSL
  740 std  R+     0:00.00 grep httpd

# Delete httpd.conf! check httpd is running:

[g3p1:/etc/httpd] root# rm httpd.conf
remove httpd.conf? y
[g3p1:/etc/httpd] root# ps ax | grep httpd
  474  ??  Ss     0:03.33 /usr/sbin/httpd -DSSL
  616  ??  S      0:03.94 perl -U /Library/WebServer/tenon/admin/httpd.pl
  671  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  726  ??  S      0:00.24 /usr/sbin/httpd -DSSL
  727  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  728  ??  S      0:00.20 /usr/sbin/httpd -DSSL
  729  ??  S      0:00.19 /usr/sbin/httpd -DSSL
  743 std  R+     0:00.00 grep httpd

# Double check httpd is running:

[g3p1:/etc/httpd] root# curl localhost
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<title>Test Page for Apache Installation</title>
</head>

#Attempt to restart httpd:

[g3p1:/etc/httpd] root# apachectl restart
/usr/sbin/apachectl restart: configuration broken, ignoring restart
/usr/sbin/apachectl restart: (run 'apachectl configtest' for details)

#Fix httpd.conf and restart Apache:

[g3p1:/etc/httpd] root# mv httpd.conf.tmp_hold httpd.conf
[g3p1:/etc/httpd] root# apachectl restart
/usr/sbin/apachectl restart: httpd restarted




>> 
>> Did you copy the httpd.conf in the Finder (make files visible set)
>> or using Terminal? When you copied, did you sudo su or sudo cp the
>> file or did you just cp it?
>> 
>> Just hunting for clues.
>> 
>> Blaine
>> 
> Hi again,
> As I was logged into ssh as root, I just used cp httpd.conf
> httpd.conf.latestsave

---------
Tenon Intersystems' iTools Mailing List
To unsubscribe: send mail to 
itools-request@xxxxxxxxxxxxxxx
with the body only containing: 
unsubscribe
Find the searchable mailing list archives 
at:
http://itools.blackpepper.co.nz/                               


| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists