Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jan 22, 2014 1:29 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
I'm running Ubuntu 12.04 LTS and whenever I restart Apache, if it can't find a site folder, all of my websites don't come up.

Example: sometimes I have a test site and remove the folders, but forget to issue a a2dissite command for that URL. Then, the next time I issue a "service apache2 reload" or "service apache2 restart" none of the other sites load. A check of the logs indicates Apache can't locate the "logs" folder in the test site I deleted.

So, is there any way to force Apache to start up regardless of whether it can find a site's folders?

Thanks!

_________________
kyler d. boudreau
theatereleven.com


Top
   
PostPosted: Wed Jan 22, 2014 3:55 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
So you'd rather config some work around in Apache so that it doesn't provide the normal safety net of checking that everything is in place like it should be, instead of just remembering to do system maintenance like you should?

Seems like the "cure" is more time consuming then the "disease".

BTW, that's why you don't dev (or test) on a production box.

YMMV

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Jan 22, 2014 5:20 pm 
Offline
Senior Member

Joined: Wed Jan 21, 2009 7:13 pm
Posts: 126
Location: Portugal
You could try apachectl configtest before restart


Top
   
PostPosted: Wed Jan 22, 2014 7:33 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Or make a logs dir outsite of the webroot


Top
   
PostPosted: Wed Jan 22, 2014 8:14 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
You might want to consider running an apache instance on a weird port and use ProxyPass and ProxyPassReverse in your main apache config to point the domain or URL under test to the test instance port. This also facilitates A/B testing.

Edit: This scenario would let the main apache instance start even when the test instance isn't running.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group