Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st May 2010, 01:44
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
Default The ErrorLog will not relocate to <VirtualHost>

In spite of having the error logfile for a <VirtualHost> within its container, its host's errors will be logged at ErrorLog /var/log/apache2/error.log rather than in
/var/log/ispconfig/httpd/domain/error.log as provided in the .vhost

I have tried usual fixes like changing property of the folders and file...... nothing worked.
Reply With Quote
Sponsored Links
  #2  
Old 31st May 2010, 10:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

I've not seen such a problem in a ispconfig 3 setup before.

1) Have you modified the vhost file or any folder permissions?
2) Please post the vhost file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st May 2010, 13:15
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
I've not seen such a problem in a ispconfig 3 setup before.

1) Have you modified the vhost file or any folder permissions?
2) Please post the vhost file.

all folders are root/root chmod 755
the error.log is client1/web4 chmod 664

ErrorLog /var/log/ispconfig/httpd/airpatrol.us/error.log

The addition is red which is mod_perl2
I have manually added /perl/ directory
The error is generated by the mod_per test script /perl/x.pl

However, it appears that the errors generated by the script /cgi-bin/x.pl are properly relocated.



Code:
<Directory /var/www/airpatrol.us>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/airpatrol.us/web
  
    ServerName airpatrol.us
    ServerAdmin webmaster@airpatrol.us

    ErrorLog /var/log/ispconfig/httpd/airpatrol.us/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html
	
    <Directory /var/www/airpatrol.us/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>
    <Directory /var/www/clients/client1/web4/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>
    # cgi enabled
    <Directory /var/www/clients/client1/web4/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client1/web4/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    #mod-perl
    Alias /perl/co.pl /var/www/perl/co.pl
    Alias /perl/ /var/www/clients/client1/web4/perl/
    <Directory /var/www/clients/client1/web4/perl>
      Order allow,deny
      Allow from all
    </Directory>
    # suexec enabled
    SuexecUserGroup web4 client1
    # php as fast-cgi enabled
    <IfModule mod_fcgid.c>
      # SocketPath /tmp/fcgid_sock/
      IdleTimeout 3600
      ProcessLifeTime 7200
      # MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
    </IfModule>
    <Directory /var/www/airpatrol.us/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web4/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    <Directory /var/www/clients/client1/web4/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web4/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web4 client1
    </IfModule>

</VirtualHost>

Last edited by edi00; 31st May 2010 at 13:55.
Reply With Quote
  #4  
Old 31st May 2010, 15:11
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
 
Default

There is another twist to this.
It appears that an error generated by a script executed in /perl/x.pl will properly relocate.

However, if that script includes a modul.pm (mod_perl module) and if the error happens within that module it will not relocate and goes to /var/log/apache2/error.log

So I do not know if the ISPConfig 3 supports mod_per2 or if it is normal but there is nothing in the apache2.conf which would distinguish between a script and module generated errors.

Last edited by edi00; 31st May 2010 at 16:53.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I set several IPs for one domain? freesqrt Tips/Tricks/Mods 17 12th January 2009 14:22
Shared IP message stirfry Installation/Configuration 15 5th November 2008 18:51


All times are GMT +2. The time now is 06:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.