Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Apache not starting
PostPosted: Mon Mar 18, 2013 12:03 pm 
Offline
Newbie

Joined: Mon Mar 18, 2013 11:52 am
Posts: 2
Hello,

I am a Linux n00b but learning fast. I have been setting up a Debian linode to use as a web server. I have been doing really well setting up services, configuring etc. But have just done something untoward which seems to have broken Apache.

I'm not sure what has caused it, but I have been adding in host files under /etc/apache2/sites-available and then creating public folders in /srv/www. After creating my last host (many more had been added successfully over the past few days) and folders, I went to restart apache, and it told me it had failed. Everytime I now try to load apache, it just fails with:

Code:
Starting web server: apache2Action 'start' failed.
The Apache error log may have more information.
 failed!


The only other thing that cold have affected it, was changes to the sshd config file at /etc/ssh/sshd_config that I made, but all I did here was try something out, and then put it back the way it was (i then restarted ssh).

Thinking about it, I also modified the www folder to be owned for the www-data group so that I can set a couple of users for permissions and access to the web folder, and nothing else.

This is what the log shows:

Code:
[Mon Mar 18 10:59:44 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze15 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 18 11:11:14 2013] [notice] Graceful restart requested, doing restart
[Mon Mar 18 11:11:14 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Mar 18 11:11:14 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze15 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 18 11:29:12 2013] [notice] caught SIGTERM, shutting down
[Mon Mar 18 11:29:13 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze15 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 18 13:18:45 2013] [notice] caught SIGTERM, shutting down
[Mon Mar 18 13:18:46 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze15 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 18 14:59:55 2013] [notice] caught SIGTERM, shutting down
[Mon Mar 18 14:59:56 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze15 with Suhosin-Patch configured -- resuming normal operations
[Mon Mar 18 15:11:14 2013] [notice] caught SIGTERM, shutting down
Unable to open logs
Unable to open logs


I have tried:

aptitude purge apache2 and dpkg-reconfigure apache2 both to no avail...

Any help would be appreciated.
thanks
Lee


Top
   
 Post subject: Re: Apache not starting
PostPosted: Mon Mar 18, 2013 12:43 pm 
Offline
Newbie

Joined: Mon Mar 18, 2013 11:52 am
Posts: 2
So, it turns out that the last site I added caused the error - I disabled it with a2dissite and then removed the host file and apache started up ok again.

The problem seemed to be that I was creating a subdomain, rather than a full domain and I left off the www. from the ServerName.

I am keeping this here in case anyone else has this problem...

Thanks anyway!


Top
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 12:52 pm 
Offline
Newbie

Joined: Fri Mar 22, 2013 12:39 pm
Posts: 2
Website: http://www.bulkjar.in
its failed cause you had to go do clear log files... once

try cd /etc/httpd/logs
then enter command rm -fr *

then go to cd /var/www/log/
then again enter rm -fr *

then just restart simple... if still issue occur post screenshots


Top
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 1:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
@aryan554

Go take your spam elsewhere.

You don't even host on Linode - so it's all
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM

_________________
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
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 2:03 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
aryan554 wrote:
try cd /etc/httpd/logs

-bash: cd: /etc/httpd/logs: No such file or directory
aryan554 wrote:
then enter command rm -fr *

Congrats, you just recursively deleted your current directory.


Can we go do clear aryan554?


Top
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 2:56 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
sednet wrote:
Can we go do clear aryan554?


In a private communication he advised me to dance around the server rack while chanting and farting, and the magic fart-inducing food he sold me was less than $5000 - quite a bargain, he said! I was irritated at paying shipping and handling fees though.

James


Top
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 3:30 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
"Chanting AND farting"

See you can learn something new every day.

I've always thought the "farting" part was optional - now I know better.

_________________
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
   
 Post subject: Re: Apache not starting
PostPosted: Fri Mar 22, 2013 4:06 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Dance around the rack? Dance around the rack?

You were lucky, in my data center we had no room to dance. We had to squeeze though 5 cm gaps between the rows of racks making sure we didn't touch two at a time because we were too poor to buy earthing cables. And we had to to be careful to avoid the charred remains of the unix administrators who were not so careful.

All for four pence every six years.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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