SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    at home
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool logging php errors separately for each wbesite

    Is there a way, without programming, to have PHP errors sent to individual files for each website I host? I want to have it handled in a fashion similar to the way Apache handles error logs for virtual servers. I am hoping to do this via the php.ini file, etc.

    Thanks,
    JM

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2004
    Location
    Cyberia
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Interesting question.. I'm not sure you can do it, but try adding a directive to each vhosts .htaccess file, or into httpd.conf virtual_directory section:

    PHP Code:
    php_value log_errors 1
    php_value error_log 
    /home/user/logs/php_log 


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •