View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-08-2009, 11:03 PM   #1
Arty Ziff
Registered: May 2008
Location: Tacoma, WA
Distribution: CentOS and RHEL
Posts: 100

Rep: Reputation: 15
Starting Services Automatically

Apache and MySQL not starting automatically on reboot.

How do I configure this?

OS = CentOS v5

- Thanks
Old 10-09-2009, 12:11 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,167

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
How did you install apache and mysql?
If you have installed both using your package manager it should have already setup the appropriate services. Use
chkconfig --list
to check the status of the 2 services, and
chkconfig httpd --level 2345 on
chkconfig mysqld --level 2345 on
to enable them.

Old 10-09-2009, 12:50 AM   #3
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
If Apache and MySQL server is a rpm based installation then enabling it to start at run level 3 (which should be your default run level) though the above commands should fix the issue for you.

If they are compiled version, then you need to add a start/stop script in /etc/init.d and then create symbolic links to them in /etc/rc.d/rc3.d for the S/K scripts for each of them.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
start services at startup automatically merlin23 Linux - Newbie 10 06-30-2013 04:48 AM
services start automatically in AIX haydar68 AIX 0 06-13-2009 12:18 AM
Start services on a restart automatically.. Skillz Linux - Server 9 04-04-2009 08:48 AM
restart network services automatically nightmare49 Linux - Networking 1 03-19-2009 07:00 PM
Services in runlevel don't start automatically tklima Linux - Server 5 12-12-2007 05:41 AM

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration