Michael Stum Michael Stum - 1 year ago 92
Linux Question

error_log per Virtual Host?

On one Linux Server running Apache and PHP 5, we got multiple Virtual Hosts with separate logfiles and everything. The only thing we cannot seem to separate between virtual hosts is the php


Overriding this setting in the
of the
does not seem to do anything.

Did I overlook something? Is there a way to have separate php
for each Virtual Host?

Answer Source

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

If there is no leading "/" it is assumed to be relative.

Apache Error Log Page

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download