Taellik wrote:Hiya Paul,
File permissions are ok.
When I use the "top" command from a terminal session, I don't see the httpd process running.
According to my apache config file, httpd is located at etc/httpd
When I do a search to try to find the executable in my etc/httpd directory to try to manually start it with the "httpd start" command, the execuable is no where to be found.
Try this:
1. Login as root (or use
su -l)
2.
chkconfig httpd on3.
chkconfig --list httpdStep 3 should print out something like this:
- Code: Select all
[root@localhost /root]# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
4.
service httpd startIf this doesn't work, you may need to create a script in
/etc/rc.d/init.d. Just in case it's not there, here's mine:
/etc/rc.d/init.d/httpd- Code: Select all
#!/bin/bash
#
# Startup script for the Apache Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: httpd
# pidfile: /var/run/httpd.pid
# config: /etc/httpd/conf/access.conf
# config: /etc/httpd/conf/httpd.conf
# config: /etc/httpd/conf/srm.conf
# Source function library.
. /etc/rc.d/init.d/functions
# Source additional OPTIONS if we have them.
if [ -f /etc/sysconfig/apache ] ; then
. /etc/sysconfig/apache
fi
# Path to the httpd binary.
httpd=/usr/sbin/httpd
prog=httpd
RETVAL=0
# Change the major functions into functions.
moduleargs() {
moduledir=/usr/lib/apache
moduleargs=`
/usr/bin/find ${moduledir} -type f -perm -0100 -name "*.so" | awk '{\
gsub(".*/","");\
gsub("^mod_","");\
gsub("^lib","");\
gsub("\.so$","");\
print "-DHAVE_" toupper($0)}'`
echo ${moduleargs}
}
start() {
echo -n "Starting $prog: "
daemon $httpd `moduleargs` $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
return $RETVAL
}
stop() {
echo -n "Stopping $prog: "
killproc $httpd
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $httpd
;;
restart)
stop
start
;;
reload)
echo -n "Reloading $prog: "
killproc $httpd -HUP
RETVAL=$?
echo
;;
condrestart)
if [ -f /var/run/httpd.pid ] ; then
stop
start
fi
;;
*)
echo "Usage: $prog {start|stop|restart|reload|condrestart|status}"
exit 1
esac
exit $RETVAL
Cheers,
Paul