LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-25-2006, 11:53 PM   #1
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Blog Entries: 1

Rep: Reputation: 15
rc.httpd won't start on boot


For some reason that eludes me, /etc/rc.d/rc.httpd will not start apache automatically when my Slackware 10.2 server boots. I can start apache manually after the fact using apachectl start, but the rc.httpd script is not starting in on boot.

I have verified the permissions on rc.httpd to be 755, and owned by root. Can anyone suggest anything I might be missing? Thanks.
 
Old 06-26-2006, 12:01 AM   #2
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
have you run the rc.httpd script manually and verified that apache runs successfully? might be a problem there. care to post it here?
 
Old 06-26-2006, 01:18 PM   #3
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
It could also be that the rc.httpd script is not called from another script (such as rc.M). Try "grep rc.httpd *" inside of /etc/rc.d/ and ensure that another script is calling it. Just putting the script to executable does not mean it will run, often times you need to add it to rc.M, rc.S, or rc.local.
 
Old 06-27-2006, 05:18 PM   #4
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Looking inside rc.httpd, it starts apache using

Code:
apachectl startssl
This is the statement that it fails on. So the question now is why?
 
Old 06-27-2006, 05:34 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you haven't set up keys/certs and configured Apache to use SSL then it won't start. You could try changing rc.httpd to use start instead of startssl or you could set it up to use ssl. There are plenty of tutorials on doing this - one of them that should help is at http://www.vanemery.com/Linux/Apache/apache-SSL.html
 
Old 06-27-2006, 05:56 PM   #6
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I did some more digging (prior to reading the last post by Gilead), and found that in mod_ssl.conf it is set to Listen on both port 80 and port 443. I commented out the Listen 80 statement, and apachectl startssl started successfully:

Code:
root      6451     1 16 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6452  6451 19 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6453  6451  0 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6454  6451  0 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6455  6451  0 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6456  6451  0 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
nobody    6458  6451  0 15:41 ?        00:00:00 /usr/sbin/httpd -DSSL
In reply to Gilead's post, the certs had already been created, and as far as I know they were done correctly.

I was able to connect to my site using https.

So... does that Listen 80 statement really need to be there? Or am I missing something (or leaving something open/broken) by not having it?
 
Old 06-27-2006, 06:51 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If you're only serving up pages via SSL you only need port 443 open, so removing the Listen 80 directive won't cause any problems. You should be able to have both though, so I'm confused as to why that fixed the problem.

In any case I'm glad that it's working for you...
 
Old 06-27-2006, 08:39 PM   #8
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Interesting, because I serve pages also through port 80, and this change has not affected them. So, like you, I am confused as well.
 
  


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
httpd fails to start arsham Linux - Software 9 09-04-2007 02:29 AM
cant start httpd mag_um Linux - Software 2 05-27-2005 08:20 AM
manual start httpd treotan Fedora 2 12-08-2004 08:08 PM
HTTPD won't start with PHP 4.3.4 BarkingBonefish Linux - Software 0 03-03-2004 12:20 PM
httpd will not start :: buddy Linux - General 9 12-31-2002 12:45 PM

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

All times are GMT -5. The time now is 07:46 AM.

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