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