|
Search tenon.com
Thanks to:
|
|
iTools
Re: Weird problem with httpd.conf save
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/
|
| <Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: individual home pages - ftp question - Itools7, (continued)
- Re: individual home pages - ftp question - Itools7, Eric Yang
- Weird problem with httpd.conf save, Terry Allen
- Re: Weird problem with httpd.conf save, samtools
- Re: Weird problem with httpd.conf save, Terry Allen
- Re: Weird problem with httpd.conf save, samtools
- Re: Weird problem with httpd.conf save, Terry Allen
- Re: Weird problem with httpd.conf save, Blaine Fergerstrom
- Re: Weird problem with httpd.conf save, Terry Allen
- Re: Weird problem with httpd.conf save,
samtools <=
- RE: Weird problem with httpd.conf save, David Kazias
- Re: Weird problem with httpd.conf save, Terry Allen
- Re: Secondary DNS?, Terry Allen
- Re: Secondary DNS?, Blaine Fergerstrom
- further 10.1.5 to 10.2.5 upgrade question, Terry Allen
- Re: Secondary DNS?, Blaine Fergerstrom
- FTP User problem, Terry Allen
- Re: iTools 7 questions on 'missing' features, Terry Allen
- Virtual hosts and logging, WJ Starck
- Re: Virtual hosts and logging, Eric Yang
|
| Tenon Home |
Products |
Order |
Contact Us |
About Tenon |
Register |
Tech Support |
Resources |
Press Room |
Mailing Lists |
|
Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara,
CA 93101. All rights reserved.
Questions about our website - Contact:
webmaster@tenon.com.
|
|