View previous topic :: View next topic |
Author |
Message |
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Sat Dec 25, 2004 7:15 am Post subject: Apache2 woes |
|
|
Anyone got a fix for this one??
Code: | Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs |
However the contents of the file /usr/lib/apache2/logs/startuperror.log is the above text??
And for some reason I getting a 404... |
|
Back to top |
|
|
jakeWSYSA n00b
Joined: 30 Apr 2004 Posts: 56
|
Posted: Sat Dec 25, 2004 7:20 am Post subject: |
|
|
Hi,
Seems that the latest build is riddled with issues. Follow the setups below.
1. create the folder "/etc/apache2/conf/ssl"
2. (re)emerge apache
3. create the folder "/usr/lib/apache2/logs"
4. create the folder "/var/cache/apache2"
5. Un-comment APACHE2_OPTS="-D SSL" in "/etc/conf.d/apache2".
6. /etc/init.d/apache2 restart
stole the steps from this post https://forums.gentoo.org/viewtopic.php?t=264542&highlight=sslcertificatefile[/code] |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Sat Dec 25, 2004 7:38 am Post subject: |
|
|
jakeWSYSA wrote: | Hi,
Seems that the latest build is riddled with issues. Follow the setups below.
1. create the folder "/etc/apache2/conf/ssl"
2. (re)emerge apache
3. create the folder "/usr/lib/apache2/logs"
4. create the folder "/var/cache/apache2"
5. Un-comment APACHE2_OPTS="-D SSL" in "/etc/conf.d/apache2".
6. /etc/init.d/apache2 restart
stole the steps from this post https://forums.gentoo.org/viewtopic.php?t=264542&highlight=sslcertificatefile[/code] |
Do I have to "emerge -C" first?? |
|
Back to top |
|
|
jakeWSYSA n00b
Joined: 30 Apr 2004 Posts: 56
|
Posted: Sat Dec 25, 2004 7:51 am Post subject: |
|
|
Nope, just follow those steps and you will be fine.
Merry Christmas |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Sat Dec 25, 2004 4:56 pm Post subject: |
|
|
jakeWSYSA wrote: | Hi,
Seems that the latest build is riddled with issues. Follow the setups below.
1. create the folder "/etc/apache2/conf/ssl"
2. (re)emerge apache
3. create the folder "/usr/lib/apache2/logs"
4. create the folder "/var/cache/apache2"
5. Un-comment APACHE2_OPTS="-D SSL" in "/etc/conf.d/apache2".
6. /etc/init.d/apache2 restart
stole the steps from this post https://forums.gentoo.org/viewtopic.php?t=264542&highlight=sslcertificatefile[/code] |
Did this and it's still doing the same thing... just added a few additional lines to the log stating the same thing.
Just as an FYI, this is a brand new Gentoo install, and this is how I installed Apache https://forums.gentoo.org/viewtopic.php?t=104806&highlight=emerge+apache |
|
Back to top |
|
|
chip n00b
Joined: 03 Aug 2002 Posts: 31 Location: Winston-Salem NC
|
Posted: Sun Dec 26, 2004 7:26 pm Post subject: |
|
|
#cd /usr/lib/ssl/apache2-mod_ssl/
#./gentestcrt.sh
answer the questions....
#cp server* /etc/apache2/conf/ssl/
then restart apache2 |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Sun Dec 26, 2004 11:36 pm Post subject: |
|
|
chip wrote: | #cd /usr/lib/ssl/apache2-mod_ssl/
#./gentestcrt.sh
answer the questions....
#cp server* /etc/apache2/conf/ssl/
then restart apache2 |
Did that...
I still do not get a webpage and I still get
Code: | Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs
Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs |
Going nuts here... Any conf's worth posting?? |
|
Back to top |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Sun Dec 26, 2004 11:40 pm Post subject: |
|
|
Problem is: you are using reiser4
It does _not_ work with that filesystem! You need ext3 or similar.
http://kerneltrap.org/node/3727 _________________ The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c
God is dead! - Nietzsche
Nietzsche is dead! -God |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Sun Dec 26, 2004 11:52 pm Post subject: |
|
|
Nope..
I used this
Code: | mke2fs -j /dev/hda3 |
|
|
Back to top |
|
|
etnoy Apprentice
Joined: 29 Aug 2003 Posts: 255 Location: Västerås, Sweden
|
Posted: Mon Dec 27, 2004 12:01 am Post subject: |
|
|
Okay. Well, then I am out of ideas...
I think I was a bit too quick in responding, since I now recall that the problem only exists for .htaccess files.
Hope you can solve it... _________________ The md5sum of the above post is 06280ccd85ef9deb49c336e7945f4b5c
God is dead! - Nietzsche
Nietzsche is dead! -God |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Mon Dec 27, 2004 12:23 am Post subject: |
|
|
etnoy wrote: | Okay. Well, then I am out of ideas...
I think I was a bit too quick in responding, since I now recall that the problem only exists for .htaccess files.
Hope you can solve it... |
Thanks...this thing is going to be nemesis before too long |
|
Back to top |
|
|
Bose-Einstein n00b
Joined: 17 Oct 2004 Posts: 43
|
Posted: Mon Dec 27, 2004 10:26 am Post subject: |
|
|
I just deleted the logs file and recreated it as a folder. Huttah, the thing worked. |
|
Back to top |
|
|
chip n00b
Joined: 03 Aug 2002 Posts: 31 Location: Winston-Salem NC
|
Posted: Mon Dec 27, 2004 5:06 pm Post subject: |
|
|
the log error was probably due to a missing /var/log/apache2 dir.
/usr/lib/apache2/logs was most likely a link to /var/log/apache2
like on mine:
in
/usr/lib/apache2
ls -l shows
lrwxrwxrwx 1 root root 16 Dec 25 12:33 logs -> /var/log/apache2
I had to create /var/log/apache2.
I bet you have no apache2 logs going to /var/log now and that they are found in /usr/lib/apache2/logs.
you can fix it by recreating the link and creating the dir in /var/log. |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Tue Dec 28, 2004 1:28 am Post subject: |
|
|
chip wrote: | the log error was probably due to a missing /var/log/apache2 dir.
/usr/lib/apache2/logs was most likely a link to /var/log/apache2
like on mine:
in
/usr/lib/apache2
ls -l shows
lrwxrwxrwx 1 root root 16 Dec 25 12:33 logs -> /var/log/apache2
I had to create /var/log/apache2.
I bet you have no apache2 logs going to /var/log now and that they are found in /usr/lib/apache2/logs.
you can fix it by recreating the link and creating the dir in /var/log. |
It was there, but I recreated it, linked it, chmod'ed it...
Code: | lrwxrwxrwx 1 root root 16 Dec 27 18:47 logs -> /var/log/apache2
|
Still get .....
Code: | Syntax OK
(21)Is a directory: apache2: could not open error log file /usr/lib/apache2/logs.
Unable to open logs |
Still won't display the default html either.... |
|
Back to top |
|
|
chip n00b
Joined: 03 Aug 2002 Posts: 31 Location: Winston-Salem NC
|
Posted: Tue Dec 28, 2004 4:08 pm Post subject: |
|
|
check the /var/log/apache2 directory.
I had to create it...
perms on mine are:
drwxr-xr-x 2 root root 4096 Dec 26 14:11 apache2 |
|
Back to top |
|
|
skyfolly Apprentice
Joined: 16 Jul 2003 Posts: 245 Location: Dongguan & Hong Kong, PRC
|
Posted: Tue Dec 28, 2004 4:21 pm Post subject: |
|
|
you have to create /logs in /var/log/apache2 folder as well. _________________ I am the only being whose doom
No tongue would ask no eye would mourn
I never caused a thought of gloom
A smile of joy since I was born.
emily bronte |
|
Back to top |
|
|
chip n00b
Joined: 03 Aug 2002 Posts: 31 Location: Winston-Salem NC
|
Posted: Tue Dec 28, 2004 5:09 pm Post subject: |
|
|
sorry skyfolly, but I don't believe this is so.
if you create the folder that the link points to then all of the files are found in /var/log/apache2, not /var/log/apache2/logs.
access_log error_log etc. will be in /var/log/apache2.
At least its that way on my box.
I did have to create /var/log/apache2 though. |
|
Back to top |
|
|
skyfolly Apprentice
Joined: 16 Jul 2003 Posts: 245 Location: Dongguan & Hong Kong, PRC
|
Posted: Wed Dec 29, 2004 1:22 am Post subject: |
|
|
chip wrote: | sorry skyfolly, but I don't believe this is so.
if you create the folder that the link points to then all of the files are found in /var/log/apache2, not /var/log/apache2/logs.
access_log error_log etc. will be in /var/log/apache2.
At least its that way on my box.
I did have to create /var/log/apache2 though. |
lol. up to you.
i encountered the same problem few days ago, that's how i solve it by creating /var/log/apache2/logs folder. _________________ I am the only being whose doom
No tongue would ask no eye would mourn
I never caused a thought of gloom
A smile of joy since I was born.
emily bronte |
|
Back to top |
|
|
xlr8ed n00b
Joined: 21 Jun 2004 Posts: 16
|
Posted: Fri Dec 31, 2004 12:33 am Post subject: Fixed |
|
|
It looks like it was an error on my part.. a great friend took a look at it for me and found my error.. here is the issue per the chat session..
Quote: | Backed up your apache2.conf to apache2.12302004 ( in case I hosed it)
Changed your Error log file to /var/log/apache2/test.log
added 192.168.1.106 slimy to /etc/hosts so it could bind to ip
yeah it was /etc/hosts that was hosing you... but I couldn't figure that out until I saw actual logs... |
My dumb mistake... thanks for all the help everyone and to friend also! |
|
Back to top |
|
|
|