Current time: 11-25-2024, 02:05 PM Hello There, Guest! (LoginRegister)


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

Posts: 39
Joined: Mar 2008
Reputation: 0
Post: #1
Problem with fast-cgi (ERROR 500)
Hi,

i have a problem with the installation.

My System:
vServer with
Debian Etch,
ispCP Omega RC3

I tried to install the System twice, but nothing has changed. (Installation with Wiki-Debian-Guide)

My logs:
error.log
suexec.log
ispcp.*myhost*.de-error.log (admin panel)

I changed nothing during installation.

I can post everything you need.
03-08-2008 01:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Problem with fast-cgi (ERROR 500)
Hi

suexec Wrote:[2008-03-07 15:14:39]: target uid/gid (2000/2000) mismatch with directory (0/0) or program (2000/2000)

there's the problem...
please check the path owners/groups of /var/www/fcgi/master and /var/www/ispcp/gui

/J
03-08-2008 02:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sufijen Offline
Junior Member
*

Posts: 39
Joined: Mar 2008
Reputation: 0
Post: #3
RE: Problem with fast-cgi (ERROR 500)
I can check it, but who has to be the ownder?

/var/www/fcgi/master
Owner: root
Group: root
Rights: drwxr-xr-x

/var/www/ispcp/gui
Owner: vu2000
Group: www-data
Rights: dr-xr-xr-x

What's the problem? Is that wrong?
03-08-2008 02:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Problem with fast-cgi (ERROR 500)
Code:
# ls -la /var/www/fcgi/
drwxr-xr-x  6 vu2000 vu2000 4096 2008-02-25 21:24 .
drwxr-xr-x 12 root   root   4096 2008-02-25 22:50 ..
drwxr-xr-x  4 vu2003 vu2003 4096 2008-02-05 16:58 domain1.tld
drwxr-xr-x  4 vu2005 vu2005 4096 2008-02-25 21:24 domain2.tld
drwxr-xr-x  4 vu2000 vu2000 4096 2008-01-27 02:46 master

# ls -la /var/www/fcgi/master/
drwxr-xr-x 4 vu2000 vu2000 4096 2008-01-27 02:46 .
drwxr-xr-x 6 vu2000 vu2000 4096 2008-02-25 21:24 ..
-rw-r--r-- 1 vu2000 vu2000  220 2008-01-27 02:37 .bash_logout
-rw-r--r-- 1 vu2000 vu2000  414 2008-01-27 02:37 .bash_profile
-rw-r--r-- 1 vu2000 vu2000 2227 2008-01-27 02:37 .bashrc
drwxr-xr-x 2 root   root   4096 2008-01-27 02:46 php4
-rwxr-xr-x 1 vu2000 vu2000  195 2008-01-27 02:46 php4-fcgi-starter
drwxr-xr-x 2 root   root   4096 2008-02-25 00:00 php5
-rwxr-xr-x 1 vu2000 vu2000  195 2008-01-27 02:46 php5-fcgi-starter

I don't know why it's not in your installation - normally the setup does it correct.

/J
03-08-2008 02:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sufijen Offline
Junior Member
*

Posts: 39
Joined: Mar 2008
Reputation: 0
Post: #5
RE: Problem with fast-cgi (ERROR 500)
Code:
# ls -la /var/www/fcgi/
total 3
drwxr-xr-x 3 vu2000 vu2000 1024 Mar  7 15:14 .
drwxr-xr-x 8 root   root   1024 Mar  7 15:13 ..
drwxr-xr-x 4 root   root   1024 Mar  7 15:14 master

# ls -la /var/www/fcgi/master/
total 6
drwxr-xr-x 4 root   root   1024 Mar  7 15:14 .
drwxr-xr-x 3 vu2000 vu2000 1024 Mar  7 15:14 ..
drwxr-xr-x 2 root   root   1024 Mar  7 15:14 php4
-rwxr-xr-x 1 vu2000 vu2000  195 Mar  7 15:14 php4-fcgi-starter
drwxr-xr-x 2 root   root   1024 Mar  7 15:14 php5
-rwxr-xr-x 1 vu2000 vu2000  195 Mar  7 15:14 php5-fcgi-starter

Is that wrong? I don't think so?!? And what can i do to activate my/the system.
03-08-2008 02:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem with fast-cgi (ERROR 500)
*the master is wrong....*

I thought you saw that.

chown vu2000:vu2000 /var/www/fcgi/master

and then try again.
03-08-2008 02:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sufijen Offline
Junior Member
*

Posts: 39
Joined: Mar 2008
Reputation: 0
Post: #7
RE: Problem with fast-cgi (ERROR 500)
It works!!!! Thank you very very much.

Now a backup^^ and then i will try it with some php-extensions
03-08-2008 03:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
uwe Offline
Junior Member
*

Posts: 68
Joined: Feb 2008
Reputation: 0
Post: #8
RE: Problem with fast-cgi (ERROR 500)
i had the exact same problem with nightly ispcp-omega-trunk-20081123 !! this is also debian etch , i thought ill let you know maybe its a regression !
11-24-2008 08:38 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: Problem with fast-cgi (ERROR 500)
I already fixed in trunk (r1403) today. Sorry about this, was my fault. Regression was introduced in r1396
(This post was last modified: 11-24-2008 09:27 AM by sci2tech.)
11-24-2008 09:19 AM
Visit this user's website Find all posts by this user Quote this message in a reply
jemmrich Offline
Junior Member
*

Posts: 24
Joined: Nov 2008
Reputation: 0
Post: #10
RE: Problem with fast-cgi (ERROR 500)
Hi, I just happened to be installing ispcp and may have downloaded the package before the changes were made yesterday.

So far my email is working from my vhcs2 upgrade which took me 5pm-12am and now im working on getting the websites to show up. Its been a long scary process Wink

Im getting the same errors but it looks as if my permissions are correct:

drwxr-xr-x 48 vu2000 vu2000 4096 Nov 23 19:12 /var/www/fcgi
drwxr-xr-x 4 vu2000 vu2000 4096 Nov 23 19:04 /var/www/fcgi/master
dr-xr-xr-x 12 vu2000 www-data 4096 Nov 23 18:53 /var/www/ispcp/gui
drwxrwx--- 18 vu2055 www-data 4096 Nov 23 19:12 /var/www/virtual/lwp.ca

and my apache config for this domain looks like:
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/master/
        ScriptAlias /php5/ /var/www/fcgi/master/
        <Directory "/var/www/fcgi/master">
            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>

the error logs:
Code:
tail /var/log/apache2/suexec.log
[2008-11-24 01:51:09]: uid: (vu2055/vu2055) gid: (2055/2055) cmd: php5-fcgi-starter
[2008-11-24 01:51:09]: target uid/gid (2055/2055) mismatch with directory (2000/2000) or program (2000/2000)
and i can successfully execute this command with no problem:
Code:
php5-cgi -f /var/www/virtual/lwp.ca/htdocs/index.php

any ideas that might help?
thanks greatly!
11-24-2008 04:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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