"John P. Looney" <john at antefacto.com> writes:
> Apache runs in "StandAlone" mode usually. Check your
> /etc/httpd/conf/httpd.conf for a "ServerType standalone" option.
Yes, that's there
>> Run "netstat -nat" and look for things listening on port 80. That'll tell
> you if apache is running. "ps auxww|grep httpd" should doa good job at
> that too.
I'll try netstat, but ps shows it's there.
>> If it's not running, it could be that it's not enabled at boot. Run
> "chkconfig --list httpd" And it'll tell you want runlevels it's enabled
> at. Check the manpage to chkconfig to find out how to enable Apache.
That's a useful command I didn't know about.
>> If it's enabled, but not running, try start it manually.
> "/etc/rc.d/init.d/httpd start" should start it. You may not need the rc.d/
> bit, depending on the OS you are using.
With the upgraded Apache install, I let it go to their default
locations, so it was "/usr/local/apache/bin/apachectl start" to do
the manual start.
>> Then, check /var/log/httpd/error_log for errors...
That was dry except when I changed "ServerType StandAlone" to
"ServerType inetd", when it was full of complaints about not being
able to write to (? open a socket on? it's the home machine, so
this is from memory) port 127.
Maybe the problem has to do with the loopback device? All I want
here is to test PHP scripts locally, so it will only ever get
called from localhost.
Brendan
--
Brendan Halpin, Dept of Government and Society, Limerick University, Ireland
Tel: w +353-61-213147; f +353-61-202569; h +353-61-390476; Room S1-03 x 3147
<mailto:brendan.halpin at ul.ie> <http://wivenhoe.staff8.ul.ie/~brendan>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!