Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71741 - apache-2.0.52-r1 missing symlink/logdir
Summary: apache-2.0.52-r1 missing symlink/logdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 75129 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-19 02:57 UTC by Allen Parker
Modified: 2004-12-20 19:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Parker 2004-11-19 02:57:13 UTC
/etc/init.d/apache2 start:
.:10:46:. <+infowolfe>  * Starting apache2...
.:10:46:. <+infowolfe> (2)No such file or directory: apache2: could not open error log file
                       /usr/lib/apache2/logs/error_log.
.:10:46:. <+infowolfe> Unable to open logs

Reproducible: Always
Steps to Reproduce:
1. USE="apache2" emerge apache
2. /etc/init.d/apache2 start


Actual Results:  
see Details

Expected Results:  
apache should have started without complaint
Comment 1 George Prowse 2004-11-20 20:48:21 UTC
this seems to have been made by having /usr/lib/apache2/logs as a file instead of a directory.

(bodge) fix:
su to root
cd /usr/lib/apache2/
rm logs
mkdir logs
nano -w logs error_log.
in the file just do a space then delete the space so its modified and save the file. 

That will give you the full path /usr/lib/apache2/logs/error_log. and allows /etc/init.d/apache2 start to work
Comment 2 George Prowse 2004-11-20 20:52:25 UTC
sorry, the line in that should have been 

nano -w logs/error_log.
Comment 3 Mike Noordermeer 2004-11-29 04:22:27 UTC
After install /usr/lib/apache2/logs is a symlink to /var/log/apache2, which is correct imho. But the ebuild does a keepdir on /var/log/apache2, but doesn't do a dodir, _that_ should be fixed.
Comment 4 Michael Moerz 2004-12-16 13:08:30 UTC
bug report #48063 is a duplicate of this one.
Comment 5 John Lyon 2004-12-18 16:02:59 UTC
Please reference bug report 48063.  It notes that several additional directories are not created: /var/cache/apache2 and /etc/apache2/conf/ssl, as well as the ssl test certificates.  

The same reason that /var/log/apache2 is not created applies to these directories and files: the change from using /bin/install (2.0.50) to keepdir ( >= 2.0.51) in pkg_postinst() function in the ebuild.  
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-18 19:12:28 UTC
fixed in apache-2.0.52-r2.
Comment 7 Sven Wegener gentoo-dev 2004-12-20 14:29:06 UTC
Can we get that fixed in -r1 too or move -r2 to stable? -r1 is latest stable and
on a fresh system a fresh emerge'd apache won't start because of the missing dir.
Comment 8 Sven Wegener gentoo-dev 2004-12-20 19:34:49 UTC
*** Bug 75129 has been marked as a duplicate of this bug. ***