Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to setup a simple hosting enviroment for my application on an Ubuntu server.

I created a virtualhost like this:

<VirtualHost *:80>

        DocumentRoot /home/owner/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        <Directory /home/owner/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all

        ErrorLog /home/owner/

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /home/owner/ combined

        php_flag log_errors on
        php_value error_log /home/owner/


Now, my problem is that PHP errors and warnings are thrown in the error.log - not the php-error.log as I was hoping.

How can achieve this?

share|improve this question
I find that the manual is usually a good place to start looking for answers - i.e. it should work. Maybe you should poll the value of error_log in your scripts. Did you restart apache? – symcbean Dec 7 '12 at 10:45

1 Answer 1

up vote 3 down vote accepted

Ensure that the apache user has permission to create the /home/owner/ file in addition to being able to write to it.

Most likely the /home/owner/ directory has 755 permissions, which would prevent Apache from being able to create the php-error.log file.

share|improve this answer
You were right - I had some permission issues. Thank you. – Repox Dec 13 '12 at 13:02

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.