More about Apache layout in
RedHatEnterpriseLlinux, Fedora Core and CentOS,:
ServerRoot : /etc/httpd
Primary Config File: /etc/httpd/conf/httpd.conf
DocumentRoot : /var/www/html
ErrorLog : /var/log/httpd/error_log
AccessLog: /var/log/httpd/access_log
cgi-bin : /var/www/cgi-bin (empty and disabled by default)
binary: /usr/sbin/httpd
To start/stop service command:
/sbin/service httpd {start|stop|restart|condre
Main Topics
Browse All Topics





by: nedvisPosted on 2007-06-16 at 23:48:34ID: 19301683
The command you typed :
chkconfig httpd on
should be:
chkconfig --level 345 httpd on
( which means you've told Linux to run httpd ( Apache WEB server/daemon ) in
runlevels 3, 4 and 5.
The above command is used to modify chkconfig list of services.
To actually start service you have to execute command :
/sbin/service <service_name> start/stop/restart
( NOTE: absolute path to the command , actually script )
So your command :
service httpd start
was wrong ,
you should've typed
/sbin/service httpd start
==========================