Solved

how to start apache automatically?

Posted on 2000-03-31
3
235 Views
Last Modified: 2010-03-18
I install the latest version 1.3.12 of apache to my linux redhat 6.0 pc.
However, I don't know how can I start it automatically once the pc start?

thank you
0
Comment
Question by:cstsang
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2673249
You can add the startup commands to /etc/rc.d/rc.local, or you could create a separate script in /etc/rc.d/init.d named apache or httpd and link it to the run level dir that you want the web server started in (probably /etc/rc.d/rc5.d/SNNhttpd).
0
 
LVL 1

Expert Comment

by:bcoleman
ID: 2673834
You could use linuxconf.  Type linuxconf  Go into Control->Control Panel->Control Service Activity.  In there you can select httpd and see if it is running, plus set it up to start up on boot(Automatic), or you can start/stop it by hand(Manual).
0
 
LVL 1

Accepted Solution

by:
philiph_elvis earned 30 total points
ID: 2674407
I believe the easiest way to do this is from the command line (as root):

# /sbin/chkconfig httpd on

You can verify that a daemon is set to start automatically thusly:

# /sbin/chkconfig --list httpd

which will list all runlevels that daemon is configured to start for.

chkconfig works with all /etc/rc.d/init.d rc scripts which are set up correctly (all the RH61 scripts are).
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CPU#7 stuck for 22s! 4 315
OpenVPN running on Ubuntu 14.4 x64 5 96
FTP: Servname not supported for ai_socktype 7 807
Monitor Aliased network interface bandwitch CentOS 4 98
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question