LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2009, 11:39 AM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 106

Rep: Reputation: 15
Problem with startup files -- Apache and MySQL do not start on reboot


I am running bizcacti performance software on this machine.
Via VMWare
Every time it reboots, http and MySQL do not start and I have to start them manually.

All the start up files look good, what could it be?

# uname -a
Linux bizcacti 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386 GNU/Linux

Code:
 # chkconfig --list | egrep  -i "mysqld|httpd"
mysqld          0:off   1:off   2:off   3:on    4:off   5:off   6:off
httpd           0:off   1:off   2:off   3:on    4:off   5:off   6:off

# l /etc/rc3.d | egrep -i "mysqld|httpd"
lrwxrwxrwx   1 root root   15 Jul  1 12:56 S85httpd -> ../init.d/httpd
lrwxrwxrwx   1 root root   16 Jul  1 12:59 S64mysqld -> ../init.d/mysqld

# ll /etc/init.d/ | egrep -i "mysqld|httpd"
-rwxr-xr-x  1 root root     3022 Aug  2  2006 httpd
-rwxr-xr-x  1 root root     4477 Apr  2  2007 mysqld
 
Old 07-08-2009, 02:17 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 546

Rep: Reputation: 197Reputation: 197
Are you booting into runlevel 3?
 
Old 07-08-2009, 02:24 PM   #3
etcetera
Member
 
Registered: Aug 2004
Posts: 106

Original Poster
Rep: Reputation: 15
I am letting it fully boot into multi-user mode.

I presume this is level 3? Or is it not?
 
Old 07-08-2009, 02:35 PM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 546

Rep: Reputation: 197Reputation: 197
As root type the command:
Code:
runlevel
 
Old 07-08-2009, 03:06 PM   #5
etcetera
Member
 
Registered: Aug 2004
Posts: 106

Original Poster
Rep: Reputation: 15
# runlevel

N 5


Should I reconfigure it to start in runlevel 5 instead of 3?
 
Old 07-08-2009, 03:12 PM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 546

Rep: Reputation: 197Reputation: 197
I don't have chkconfig installed but I assume you can turn services on/off with it. Just turn on mysqld & httpd in run level 5.

Check the man page.
 
Old 07-09-2009, 03:21 AM   #7
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,497

Rep: Reputation: 90
Or you can put

Code:
/usr/local/mysql/bin/mysqld_safe --user=mysql &
/usr/local/apache2/bin/apachectl start
in /etc/rc.local (edit for your setup as needed)
 
Old 07-09-2009, 09:34 AM   #8
etcetera
Member
 
Registered: Aug 2004
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by norobro View Post
I don't have chkconfig installed but I assume you can turn services on/off with it. Just turn on mysqld & httpd in run level 5.

.
I did that, shall see what happens.
 
  


Reply


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
Slackware 12.2 do not start apache during startup manolo Slackware 15 03-06-2009 03:16 PM
I have RHEL 5.0 and MySQL start problem, my MySQL server doesn't start rsatya Linux - Enterprise 4 02-03-2009 01:04 PM
MySQL doesn't start after reboot nfrolov Linux - Server 4 08-08-2008 03:18 PM
apache/mysql startup robyne *BSD 1 07-11-2005 02:34 AM
Apache and MySQL servers won't run at startup! dday007 Linux - Newbie 2 02-07-2003 05:01 PM


All times are GMT -5. The time now is 03:54 PM.

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