Error_log per VirtualHost

Discussion in 'General' started by Fastian, Mar 26, 2010.

  1. Fastian

    Fastian New Member

    Hi

    I am having problem setting up Error log for a particular user account (To debug few problems). The same setup is working on server running cPanel/apache/php5, but it's not working on cPanel/Litespeed/php5.

    LiteSpeed WS is configured to follow configurations from httpd.conf file. There is no VHost Template in LSWS. So, that should not be a problem. (Right?)

    Here is part of my Httpd.conf for that virtualhost

    Code:
    <VirtualHost x.x.x.x:80>
        ServerName usrdomain.com
        ServerAlias www .usrdomain.com (Space due to  forum restriction)
        DocumentRoot /home/usrdomain/public_html
        ServerAdmin webmaster@usrdomain.com
        UseCanonicalName Off
        CustomLog /usr/local/apache/domlogs/usrdomain.com combined
        CustomLog /usr/local/apache/domlogs/usrdomain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    [B]ErrorLog /var/log/domain_error.log
    php_value error_log /var/log/domain_php_error.log[/B]
    </VirtualHost>
    
    I just added the bold part above. Created log files and restarted LSWS. Still I am not getting anything in log files created for that particular user.
    (I tried adding those lines directly in httpd.conf and also via include file. Still no luck)

    What I am missing??
    Help please, as I cant think of anything else.

    PS. I am not trying to have separate error_log/php_log file for every Vhost. It's just for one user.
  2. NiteWave

    NiteWave Administrator

    tested on our lab, set
    ErrorLog /tmp/error.log
    at virtual host level. it works.

    please check if any permission issue for /var/log?

Share This Page