php error log for each website

Discussion in 'Installation/Configuration' started by gring, Sep 8, 2009.

  1. gring

    gring Member

    Hi!

    Is it possible to have php to log its errors to a different file for each website, like it is the case for the apache logs?

    in php.ini it is explained how to log to a file, but it's the same file for every website.

    thanks
     
  2. Leszek

    Leszek Member

    One way to do it is to use suphp and have individual php.ini files configured for each virtual host to have it's own log file.
     
  3. gring

    gring Member

    Hi Leszek

    Thanks for your answer.
    It seems that the solution was simple, just activate logging in php.ini without specifying a log file, and the errors will be logged in apache's logs, which are already separated for each site
     

Share This Page