Starting Apache web server automatically
Hi,
I am running Red Hat 9 on my pc with Apache web server to host my web site. But on the odd occasion my pc needs to be rebooted in which case I need to go to the init.d direcgtory and start the httpd manually. How could I automate this so that my web server starts up automatically on boot up? |
Try this:
chkconfig httpd on |
well there is a simple way to run httpd as a standalone daemon
as u r using redhat its even more simpler run this command in the terminal $ ntsysv now u will see various daemon present in ur system enable httpd by pressing space bar now after coming out run this command once service httpd start |
Hi,
I have tried both chkconfig httpd on as well as ntsysv and on both the response I get is "command not found" ?? |
Are you logged in as root? Make sure that /sbin is in your path. When you su, use "su -" to load a new shell for root or use the full path:
/sbin/chkconfig |
All times are GMT -5. The time now is 12:54 PM. |