LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2012, 04:04 PM   #1
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Rep: Reputation: 0
httpd and mysql as service


Hi,

Recently o configured mysql and apache in my slackware64, i turned rc.mysql and rc.httpd into executable to execute at boot time as service, the problem is not working, but i can start manually after start with no problems.
I don't have any idea what is the source of problem, is there someone experienced same problem? And how fix them?

regards
 
Old 06-01-2012, 04:25 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Looks strange, as if rc.mysql and rc.httpd are executable they should be started at boot time as shows the script /etc/rc.d/rc.M

Do you see anything wrong in the logs at boot time (/var/log/messages &/var/log/syslog).

Only to be sure, please post the results of:
Code:
ls -l /etc/rc.d
 
1 members found this post helpful.
Old 06-01-2012, 07:05 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
try to run them in terminal
Code:
/etc/rc.d/rc.mysqld start
/etc/rc.d/rc.httpd start
and see if there's an error
 
Old 06-02-2012, 04:09 AM   #4
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Didier Spaier View Post
Looks strange, as if rc.mysql and rc.httpd are executable they should be started at boot time as shows the script /etc/rc.d/rc.M
I forgot to see rc.M, until you mentioned, so i went to see rc.M, and i saw mysql and httpd was commented. i will uncomment and see if it resolves the problem.

Code:
Do you see anything wrong in the logs at boot time (/var/log/messages &/var/log/syslog).

Only to be sure, please post the results of:
Code:
ls -l /etc/rc.d
Here is the command result:

Code:
drwxr-xr-x 2 root root   112 Sep 23  2008 init.d/
lrwxrwxrwx 1 root root     4 Feb  7 22:13 rc.0 -> rc.6*
-rwxr-xr-x 1 root root  1282 Mar 27  2007 rc.4*
-rwxr-xr-x 1 root root  7677 Apr 16  2011 rc.6*
-rwxr-xr-x 1 root root  2893 Apr 16  2011 rc.K*
-rwxr-xr-x 1 root root 11527 May 31 22:00 rc.M*
-rwxr-xr-x 1 root root 11475 Mar 22  2011 rc.M~*
-rwxr-xr-x 1 root root 14581 Apr 23  2011 rc.S*
-rwxr-xr-x 1 root root   552 Apr 16  2011 rc.acpid*
-rwxr-xr-x 1 root root  2771 Feb  9  2011 rc.alsa*
-rw-r--r-- 1 root root  1032 Feb 17  2010 rc.atalk
-rw-r--r-- 1 root root  2784 Mar  5  2010 rc.autofs
-rw-r--r-- 1 root root  3378 Jun 24  2010 rc.bind
-rw-r--r-- 1 root root   497 Mar 31  2011 rc.bluetooth
-rw-r--r-- 1 root root  4852 Mar  3  2011 rc.cgconfig
-rw-r--r-- 1 root root  3397 Mar  3  2011 rc.cgred
-rwxr-xr-x 1 root root   572 Dec 19  2010 rc.consolekit*
-rw-r--r-- 1 root root  4318 Jan 22  2011 rc.cups
-rw-r--r-- 1 root root   512 Mar 16  2011 rc.dnsmasq
-rw-r--r-- 1 root root   119 Apr 29  2010 rc.font
-rwxr-xr-x 1 root root  1893 Jan 30  2011 rc.fuse*
-rwxr-xr-x 1 root root  1156 Feb  7 22:26 rc.gpm*
-rwxr-xr-x 1 root root   906 Nov 16  2010 rc.hald*
-rwxr-xr-x 1 root root   703 Feb 12  2011 rc.httpd*
-rwxr-xr-x 1 root root  9600 Aug 26  2009 rc.inet1*
-rw------- 1 root root  3614 Mar  9 22:02 rc.inet1.conf
-rw------- 1 root root  3611 Feb 26 00:19 rc.inet1.conf~
-rwxr-xr-x 1 root root  4847 Sep 17  2007 rc.inet2*
-rwxr-xr-x 1 root root   497 Sep 12  2003 rc.inetd*
-rw-r--r-- 1 root root  2684 Dec  3  2008 rc.ip_forward
-rwxr-xr-x 1 root root   147 Feb  7 22:21 rc.keymap*
-rwxr-xr-x 1 root root   941 Mar  6 23:01 rc.local*
-rwxr-xr-x 1 root root   168 Apr 23  2011 rc.loop*
-rwxr-xr-x 1 root root  1935 Sep 27  2010 rc.mcelog*
-rwxr-xr-x 1 root root  1740 Dec 23  2010 rc.messagebus*
lrwxrwxrwx 1 root root    19 Feb  7 22:13 rc.modules -> rc.modules-2.6.37.6*
-rwxr-xr-x 1 root root 35406 Apr 10  2011 rc.modules-2.6.37.6*
-rwxr-xr-x 1 root root  2585 Apr  5  2011 rc.mysqld*
-rw-r--r-- 1 root root  2449 Mar 21  2011 rc.nfsd
-rw-r--r-- 1 root root   804 Jan 26  2011 rc.ntpd
-rw-r--r-- 1 root root  1722 Mar 16  2007 rc.pcmcia
-rw-r--r-- 1 root root  1402 Oct 14  2008 rc.rpc
-rw-r--r-- 1 root root   791 Mar  8  2011 rc.samba
-rw-r--r-- 1 root root  1169 May 15  2009 rc.saslauthd
-rw-r--r-- 1 root root   687 Jun  4  2002 rc.sendmail
-rw-r--r-- 1 root root  2895 Feb 16  2011 rc.serial
-rw-r--r-- 1 root root   895 Mar 19  2011 rc.snmpd
-rwxr-xr-x 1 root root  1600 Feb  4  2011 rc.sshd*
-rwxr-xr-x 1 root root   981 Oct 21  2010 rc.syslog*
-rw-r--r-- 1 root root  1018 Apr 26  2010 rc.sysstat
-rwxr-xr-x 1 root root  1740 Sep 11  1999 rc.sysvinit*
-rwxr-xr-x 1 root root  5058 Dec 13  2010 rc.udev*
-rwxr-xr-x 1 root root  8439 Mar  6 23:01 rc.vboxballoonctrl-service*
-rwxr-xr-x 1 root root 12671 Mar  6 23:01 rc.vboxdrv*
-rwxr-xr-x 1 root root  8360 Mar  6 23:01 rc.vboxweb-service*
-rw-r--r-- 1 root root  1507 Mar 17  2007 rc.vncservers
-rw-r--r-- 1 root root   455 Mar 17  2007 rc.vncservers.conf
-rwxr-xr-x 1 root root 12835 Jan  3  2010 rc.wireless*
-rw------- 1 root root  7320 Jan  3  2010 rc.wireless.conf
-rwxr-xr-x 1 root root  2323 Mar  8  2011 rc.yp*
drwxr-xr-x 2 root root    48 Sep 23  2008 rc0.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc1.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc2.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc3.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc4.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc5.d/
drwxr-xr-x 2 root root    48 Sep 23  2008 rc6.d/

Last edited by BlinkingSpirit; 06-02-2012 at 04:18 AM.
 
Old 06-02-2012, 04:32 AM   #5
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Original Poster
Rep: Reputation: 0
After uncomment mysql and httpd in rc.M resolved the problem.

thanks
 
Old 06-02-2012, 08:49 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by BlinkingSpirit View Post
After uncomment mysql and httpd in rc.M resolved the problem.

thanks
Those commented-out sections must have been done by you yourself. Slackware's default rc.M file does not have those services commented out.

Eric
 
Old 06-02-2012, 10:29 AM   #7
BlinkingSpirit
LQ Newbie
 
Registered: Aug 2008
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
Those commented-out sections must have been done by you yourself. Slackware's default rc.M file does not have those services commented out.

Eric
It's possible i commented after installation (don't remember what was a reason i did that). i didn't say was commented by default, in my laptop where installation is newer i didn't have this problem, after configuration.
 
  


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
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' markseger Fedora - Installation 2 02-09-2011 11:53 PM
Why no httpd service? Sysop1911 Linux - Software 5 12-14-2007 06:30 PM
HTTPD service Uttam Shrestha Rana Linux - Server 2 12-10-2007 11:16 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd as a service joshf Linux - Software 5 07-10-2003 07:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:53 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