Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-25-2006, 11:53 PM
|
#1
|
Member
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Rep:
|
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.
|
|
|
06-26-2006, 12:01 AM
|
#2
|
Member
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753
Rep:
|
have you run the rc.httpd script manually and verified that apache runs successfully? might be a problem there. care to post it here?
|
|
|
06-26-2006, 01:18 PM
|
#3
|
Member
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496
Rep:
|
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.
|
|
|
06-27-2006, 05:18 PM
|
#4
|
Member
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Original Poster
Rep:
|
Looking inside rc.httpd, it starts apache using
This is the statement that it fails on. So the question now is why?
|
|
|
06-27-2006, 05:34 PM
|
#5
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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
|
|
|
06-27-2006, 05:56 PM
|
#6
|
Member
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Original Poster
Rep:
|
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?
|
|
|
06-27-2006, 06:51 PM
|
#7
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141
Rep: 
|
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...
|
|
|
06-27-2006, 08:39 PM
|
#8
|
Member
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Original Poster
Rep:
|
Interesting, because I serve pages also through port 80, and this change has not affected them. So, like you, I am confused as well.
|
|
|
All times are GMT -5. The time now is 07:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|