<p>On one Linux Server running Apache and PHP 5, we have multiple Virtual Hosts with separate log files. We cannot seem to separate the php <code>error_log</code> between virtual hosts.</p>

<p>Overriding this setting in the <code>&lt;Location&gt;</code> of the <code>httpd.conf</code> does not seem to do anything.</p>

<p>Is there a way to have separate php <code>error_logs</code> for each Virtual Host?</p>

To set the
Apache
(
not the PHP
) log, the easiest way to do this would be to do:
```
```
<VirtualHost IP:Port>
   # Stuff,
   # More Stuff,
   ErrorLog /path/where/you/want/the/error.log
</VirtualHost>
```
```
If there is no leading "/" it is assumed to be relative.
Apache Error Log Page