Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a brand new vps server with Ubuntu 14.04, i686, Apache 2.4.7, php 5.5.9

here's my virtual host:

<VirtualHost *:80>

DocumentRoot "/home/drake/www/"

DirectoryIndex index.php
ErrorDocument 404 /404.html

ErrorLog /home/drake/logs/error.log
CustomLog /home/drake/logs/access.log combined


ls -la /home/drake/logs:

drwxrwxr-x 2 root root 4096 Apr 29 23:30 .
drwxrwxr-x 2 root root 4096 Apr 29 23:30 ..

I have a php file index.php:

ecoja a3ad

I want to test the log files and nothing gets saved.

in my php.ini i have:

error_repoting E_ALL
display_errors = On
log_errors = On
error_log = /home/drake/logs/php_error.log

Why I dont see any logs?

share|improve this question
What is permission of /home/drake/logs directory ? – Abhijeet Kasurde Apr 30 '14 at 4:13
@AbhijeetKasurde drwxrwxr-x, but I changed it to 777 and still nothing – Timmy Apr 30 '14 at 12:07
Are you sure you change rights on /home/drake/logs/ because in your question, it is still 775 ? Did you change /home/drake/ rights to 777 ? It s not safe but check it. – kranteg Apr 30 '14 at 12:43
@kranteg I did back and forth ... now it is set at 777 – Timmy Apr 30 '14 at 13:06
Another angle - why are you logging into a non-default directory (and document root for that matter)? What's wrong with /var/log/apache2/drake/*.log and /var/www/drake? – Craig Watson May 1 '14 at 13:32
up vote 1 down vote accepted

With Apache Apache/2.4.7 you might need to simply restart the service.

sudo apache2ctl graceful


sudo /etc/init.d/apache2 reload

You also might create the file manually:

touch /home/drake/logs/error.log

Change the permissions:

chown "MYAPACHEUSER": /home/drake/logs/error.log

Make sure the path: /home/drake/logs has write access.

chmod +rw /home/drake/logs/error.log

Also, double check to make sure the /var/log/apache2/error.log contains something, maybe they still go there.

Now, if you remove or move the file, you need to restart the service. I recommend graceful first.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.