LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting Apache web server automatically (https://www.linuxquestions.org/questions/linux-newbie-8/starting-apache-web-server-automatically-177885/)

gslater 05-04-2004 04:26 PM

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?

david_ross 05-04-2004 04:55 PM

Try this:
chkconfig httpd on

sashhoney 05-05-2004 06:57 AM

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

gslater 05-09-2004 09:08 AM

Hi,

I have tried both chkconfig httpd on as well as ntsysv and on both the response I get is "command not found" ??

david_ross 05-09-2004 01:44 PM

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.