Apache not starting
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:
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:
[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
7 Replies
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!
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
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
@aryan554:
try cd /etc/httpd/logs
-bash: cd: /etc/httpd/logs: No such file or directory
@aryan554:then enter command rm -fr *
Congrats, you just recursively deleted your current directory.
Can we go do clear aryan554?
@sednet:
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
See you can learn something new every day.
I've always thought the "farting" part was optional - now I know better.
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.