LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-06-2013, 08:54 AM   #16
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145

Quote:
Isn't it just saying that it can't find the mods-enabled directory?
No, it's saying that it can't find
/var/www/mods-enabled
probably because mods-enabled folder resides in
/etc/apache2/mods-enabled
or have you moved that into the default document root of the server?
 
Old 05-06-2013, 02:53 PM   #17
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes he did.
 
Old 05-06-2013, 04:12 PM   #18
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
would just re-installing apache2 possibly fix it?

EDIT: that did not fix it.

Got the log. Will post a snippet of it. it is 692 lines long.

Last edited by sniper8752; 05-06-2013 at 08:47 PM.
 
Old 05-06-2013, 08:49 PM   #19
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Code:
sudo tail error.log -n 50
[Sat Apr 27 03:57:39 2013] [error] [client 10.30.210.231] client denied by server configuration: /var/www/
[Sat Apr 27 03:57:39 2013] [error] [client 10.30.210.231] client denied by server configuration: /var/www/favicon.ico
[Sat Apr 27 03:59:34 2013] [error] [client 127.0.0.1] client denied by server configuration: /var/www/favicon.ico, referer: http://localhost/server-status
[Sat Apr 27 04:06:15 2013] [error] [client 10.30.210.231] client denied by server configuration: /var/www/
[Sat Apr 27 04:06:15 2013] [error] [client 10.30.210.231] client denied by server configuration: /var/www/favicon.ico
[Sat Apr 27 04:06:43 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 04:06:45 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:06:46 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:06:46 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 04:06:49 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 04:07:26 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 04:07:30 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:07:34 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:07:34 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 04:09:12 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 04:09:14 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:09:17 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:09:17 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 04:11:04 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 04:11:09 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:11:10 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 04:11:10 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 04:11:21 2013] [error] [client 127.0.0.1] user  not found: /server-status
[Sat Apr 27 04:23:00 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 00:23:03 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 00:23:04 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 00:23:04 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 00:23:32 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:23:38 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:28:53 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:37:07 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 00:37:09 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 00:37:11 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 00:37:11 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 00:37:15 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:39:21 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:39:24 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 00:39:32 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 01:12:33 2013] [error] [client 10.30.210.231] File does not exist: /var/www/favicon.ico
[Sat Apr 27 01:13:07 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 01:13:26 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 01:13:32 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 01:13:32 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 10:23:46 2013] [error] [client 10.30.211.10] File does not exist: /var/www/favicon.ico
[Sat Apr 27 10:39:44 2013] [notice] caught SIGTERM, shutting down
[Sat Apr 27 10:40:04 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 10:40:06 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Apr 27 10:40:06 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[Sat Apr 27 10:48:53 2013] [error] [client 10.30.211.10] File does not exist: /var/www/favicon.ico
[Sat Apr 27 11:38:25 2013] [notice] caught SIGTERM, shutting down
Let me know if you would like me to post more.
 
Old 05-07-2013, 01:31 PM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sniper8752 View Post
would just re-installing apache2 possibly fix it?
That's a kind of "windows approach": unnecessary and besides you don't learn anything from it.

*What I do is put system and daemon configuration under revision control (any should work from good 'ol RCS to HG or whatever you're comfortable with). Yes, it requires the discipline to (remember) use it (I use a wrapper around vi) and make appropriate comments before committing but it means that 0) you're able to see when a change was made, 1) what the change contains and 2) roll back changes more easily for debugging / testing / SNAFU purposes.

Doing that (or making backups) would have allowed you to see you fscked up your config yourself:

Quote:
Originally Posted by sniper8752
Code:
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation (available
# at <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
#ServerRoot "/etc/apache2"
# Modified by me!
ServerRoot /var/www
 
Old 05-07-2013, 03:49 PM   #21
sniper8752
Member
 
Registered: Oct 2012
Posts: 564

Original Poster
Rep: Reputation: Disabled
Sorry, a little to confusing for me. I am still learning Apache, and am lost. I reviewed what you highlighted in red, and so I commented out the ServerRoot line. Was this the right thing to do? I also did the following (uncommented this line as well and removed the "'s):

ServerRoot /etc/apache2

Last edited by sniper8752; 05-07-2013 at 03:54 PM.
 
Old 05-14-2013, 01:16 AM   #22
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X Server fails to Start arindom SUSE / openSUSE 5 10-25-2007 03:17 AM
x server fails to start. jkdas12 Linux - Newbie 1 07-21-2007 02:13 AM
Apache: httpd fails to start PhilTR Linux - Server 20 02-24-2007 03:05 PM
apache fails on start: error 256 sohmc Linux - Networking 0 01-07-2005 08:32 AM
Apache start fails... no error messages given esmiz Linux - Software 12 05-29-2004 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration