LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10:39 AM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Rep: Reputation: 17
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, 01:17 PM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

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

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

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

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

Original Poster
Rep: Reputation: 17
# runlevel

N 5


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

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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, 02: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,552

Rep: Reputation: 103Reputation: 103
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, 08:34 AM   #8
etcetera
Member
 
Registered: Aug 2004
Posts: 436

Original Poster
Rep: Reputation: 17
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Open Source Consulting | Domain Registration