Current time: 11-16-2024, 01:41 PM Hello There, Guest! (LoginRegister)


Post Reply 
Problem with fast-cgi (ERROR 500)
Author Message
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #11
RE: Problem with fast-cgi (ERROR 500)
Ok, i fixed it and now it doesnt give me the Error 500 page by modifying fastcgi's path in the config below.

Code:
<VirtualHost 216.208.38.144:80>
    <IfModule suexec_module>
           SuexecUserGroup vu2055 vu2055
    </IfModule>

    ServerAdmin     root@lwp.ca
    DocumentRoot    /var/www/virtual/lwp.ca/htdocs
    
    ServerName      lwp.ca
    ServerAlias     www.lwp.ca lwp.ca *.lwp.ca
    
    ErrorLog        /var/log/apache2/users/lwp.ca-error.log
    TransferLog     /var/log/apache2/users/lwp.ca-access.log
    
    CustomLog       /var/log/apache2/lwp.ca-traf.log traff
    CustomLog       /var/log/apache2/lwp.ca-combined.log combined
    
    Alias /errors   /var/www/virtual/lwp.ca/errors/

    ErrorDocument 401 /errors/401/index.php
    ErrorDocument 403 /errors/403/index.php
    ErrorDocument 404 /errors/404/index.php
    ErrorDocument 500 /errors/500/index.php
    
    Alias /pma      /var/www/ispcp/gui/tools/pma/
    Alias /webmail  /var/www/ispcp/gui/tools/webmail/
    Alias /ftp      /var/www/ispcp/gui/tools/filemanager/

    <Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fastcgi.c>
        ScriptAlias /php4/ /var/www/fcgi/lwp.ca/
        ScriptAlias /php5/ /var/www/fcgi/lwp.ca/
        <Directory "/var/www/fcgi/lwp.ca">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php4.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>
    <IfModule mod_php5.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>
    php_admin_value open_basedir "/var/www/virtual/lwp.ca/htdocs/:/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            
    <Directory /var/www/virtual/lwp.ca/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    
</VirtualHost>

However when i put two websites in the same config, no matter which site i go to, one always shows up, even if i enter in a different domain. How do you differentiate between domains?

Thanks,
Hope im not hijacking this thread!!
(This post was last modified: 11-25-2008 01:13 AM by jemmrich.)
11-25-2008 01:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Problem with fast-cgi (ERROR 500) - jemmrich - 11-25-2008 01:11 AM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)