Forum Moderators: phranque

Message Too Old, No Replies

Problems with apache 2: Sigterm

(Running Ubuntu 11.10)

         

apachewebserverguy

3:10 am on Feb 12, 2012 (gmt 0)

10+ Year Member



Hi,
I'm having issues with an apache web server. After attempting to start the web server in webmin, it gives me this error message:
* Starting web server apache2
Syntax error on line 21 of /etc/apache2/sites-enabled/000-default:
allow requires at least two arguments, 'from' followed by hostnames or IP-address wildcards
Action 'start' failed.
The Apache error log may have more information.
...fail!

The errorlog (within the apache2 web server files) says this:
[Mon Jan 30 08:02:04 2012] [notice] Apache/2.2.20 (Ubuntu) configured -- resuming normal operations
[Mon Jan 30 08:06:39 2012] [error] File does not exist: /var/www/favicon.ico

[Mon Jan 30 08:06:39 2012] [error] File does not exist: /var/www/favicon.ico

[Mon Jan 30 18:26:01 2012] [error] File does not exist: /var/www/favicon.ico

[Mon Jan 30 18:26:01 2012] [error] File does not exist: /var/www/favicon.ico

[Tue Feb 07 21:36:51 2012] [warn] child process 5040 still did not exit, sending a
SIGTERM

[Tue Feb 07 21:36:53 2012] [notice] caught SIGTERM, shutting down

When I try to load the web page apache is supposed to be hosting, It will not load. Any help would be much appreciated! :)

phranque

8:12 am on Feb 14, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcom to WebmasterWorld, apachewebserverguy!

look in the directory contexts of your server config file.
i looks like you have a syntax error with an Allow directive:
http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow

you should have:
Allow from [hostnames or IP-address wildcards]

it appears you aren't using that syntax.

apachewebserverguy

3:06 am on Feb 15, 2012 (gmt 0)

10+ Year Member



Thank you for your feedback phranque. In the 000-default folder in the sites-enable folder I put the original code in. Because of this I am not getting anymore errors but the webpage apache is supposed to be hosting is not up stil. Any Ideas on as where I should to start to trouble shoot this.( No errors in webmin or the error log)

phranque

10:38 am on Feb 15, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



what is the status code of the response?
any interesting response headers?
what document gets returned?

apachewebserverguy

1:49 am on Feb 22, 2012 (gmt 0)

10+ Year Member



Phranque,
The issue here was an invalid HTML directive and an error in the 000-default file. The way I fixed the 000-default was by restoring it to its default coding, and the directive I fixed by giving it a valid path. I appreciate your help!