Apache2 web server does not start

Bug #411066 reported by Jochen Schmitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EasyPeasy Overview
Incomplete
Undecided
Unassigned

Bug Description

In Easy Peasy 1.1 the apache2 web server does not start, it complains that it's error log file does not exist:

> sudo apache2ctl start
(2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log.
Unable to open logs

I guess the reason is that Easy Peasy puts /var/log on a tmpfs? I fixed this by adding an additional check in /etc/init.d/apache2: during start check if the log directory / error log file exists and, if not, create them. Below is the diff between the new and the original (Easy Peasy 1.1) file /etc/init.d/apache2:

150,160d149
< log_daemon_msg "Check existence of log file" "apache2"
< APACHE_TMPDIR=/var/log/apache2
< APACHE_TMPFILE=$APACHE_TMPDIR/error.log
< if [ ! -e $APACHE_TMPDIR ] ; then
< mkdir -p $APACHE_TMPDIR
< fi
< if [ -d $APACHE_TMPDIR ] ; then
< if [ ! -e $APACHE_TMPFILE ] ; then
< touch $APACHE_TMPFILE
< fi
< fi

Tags: apache
Revision history for this message
Jon Ramvi (ramvi) wrote :

Is this still a problem in easypeasy 1.5?

Changed in easypeasy:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.