Tuesday, April 24, 2012

Ubuntu apache error


Ubuntu apache error
Posted by Kristian P on 06 May 2011 01:28 AM
While restarting Apache service you are getting error messages as :

==========================================
/etc/init.d/apache2 start
Starting web server: apache2Action 'start' failed.
The Apache error log may have more information.
failed!
===========================================

check the error.log file, if you receive the error messages as:

[error] (2)No such file or directory: could not open transfer log file /etc/apache2/${APACHE_LOG_DIR}/other_vhosts_access.log

Edit the file  /etc/apache2/envvars:

Add one line as :

export APACHE_LOG_DIR=/var/log/apache2

Now try to restart apache service.

No comments:

Post a Comment