Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91455 - Apache doesn't create the necessary dirs to work out of the box
Summary: Apache doesn't create the necessary dirs to work out of the box
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
: 91672 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-04 09:34 UTC by Pedro Algarvio
Modified: 2005-07-11 19:39 UTC (History)
1 user (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 Pedro Algarvio 2005-05-04 09:34:45 UTC
I emerged apache2 with ssl.
At first apache didn't start because it had no logs dir so I created it:
mkdir /var/log/apache2
Then created a symlink to where he was looking for it.
ln -s /var/log/apache2 /urs/lib/apache2/logs

Then I tried to start apache with SSL and it failed because it could not create
/var/cache/apache2/ssl_mutex
Of course not, I had to:
mkdir /var/cache/apache2

This might not be bugs but the last time I emerged apache2 I didn't got theses errors.

Reproducible: Always
Steps to Reproduce:
1. You just needed to start apache
Actual Results:  
Snipets of LOGS:
[Wed May 04 17:01:11 2005] [error] (2)No such file or directory: Cannot create
SSLMutex with file `/var/cache/apache2/ssl_mutex.25128'


Expected Results:  
Apache should have started

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  2 2005, 09:52:23)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/
ftp://darkstar.ist.utl.pt/pub/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/
ftp://ftp.gentoo-pt.org/pub/gentoo/ ftp://mirrors1.netvisao.pt/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo-pt.org/gentoo-portage"
USE="x86 X apache2 apm avi bash-completion berkdb bitmap-fonts crypt curl
directfb emboss encode fam foomaticdb fortran gd gdbm gif gnome gpm gtk imlib
jpeg libg++ libwww mad mikmod mmx motif mp3 mpeg mysql ncurses nls nosound ogg
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl spell ssl
svga tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-05-04 09:39:32 UTC
Post the exact apache version and reopen.
Comment 2 Pedro Algarvio 2005-05-04 18:02:28 UTC
# apache2ctl -v
Server version: Apache/2.0.52
Server built:   May  2 2005 14:52:45
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-05-05 00:44:13 UTC
Sorry, there are four different apache-2.0.52 ebuilds in portage right now. Use `emerge -pv apache` or `equery list apache` or whatever appropriate portage tool and include _exact_ ebuild version in your report. 
Comment 4 Pedro Algarvio 2005-05-06 07:34:20 UTC
#emerge -pv apache

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/apache-2.0.52-r1  +berkdb -debug -doc +gdbm -ipv6 -ldap +ssl -static -threads 0 kB

Total size of downloads: 0 kB
--------------------------------------------------------------------------------
# equery list apache
[ Searching for package 'apache' in all categories among: ]
 * installed packages
[I--] [  ] net-www/apache-2.0.52-r1 (2)
Comment 5 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-07-11 19:38:23 UTC
this works for me with old-style (unstable) and new-style (stable).
please reopen if your results show diffrently.
Comment 6 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-07-11 19:39:41 UTC
*** Bug 91672 has been marked as a duplicate of this bug. ***