Apache2 web server does not start
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/
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.
150,160d149
< log_daemon_msg "Check existence of log file" "apache2"
< APACHE_
< APACHE_
< 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
Is this still a problem in easypeasy 1.5?