Current time: 11-16-2024, 09:29 AM Hello There, Guest! (LoginRegister)


Post Reply 
Internal server error 500 with php files
Author Message
rethus Offline
Junior Member
*

Posts: 202
Joined: May 2009
Reputation: 3
Post: #11
RE: Internal server error 500 with php files
I have found the solution on my own... in my 02_ssl.conf file in /etc/apache2/sites-available i have now add the following to this file - and it worked:

Code:
<IfModule mod_fcgid.c>
                Include /etc/apache2/mods-available/fcgid_ispcp.conf
        <Directory /var/www/virtual/mypage.de/htdocs>
            FCGIWrapper /var/www/fcgi/mypage.de/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/mypage.de">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
(This post was last modified: 07-07-2010 01:22 AM by rethus.)
07-07-2010 01:11 AM
Find all posts by this user Quote this message in a reply
bederko Offline


Posts: 4
Joined: May 2011
Reputation: 0
Post: #12
RE: Internal server error 500 with php files
I have the same problem with run php files, can someone help me ?

This is my suexec.log

[2011-05-05 14:27:31]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 14:29:19]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 20:43:11]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:15:35]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:15:37]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:18:33]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:26:20]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:52:25]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 22:18:59]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:18:59]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:21:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:21:06]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:29:11]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:29:11]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:31:02]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:31:02]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 09:43:29]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-07 14:38:15]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:15]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:38:24]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:24]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:38:38]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:38]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:39:25]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:39:25]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:55:05]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:55:05]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:02:51]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:02:51]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:11:28]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:11:28]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:17:11]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:17:11]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:30:35]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter

Thx, Lukas
(This post was last modified: 05-08-2011 12:13 AM by bederko.)
05-08-2011 12:06 AM
Find all posts by this user Quote this message in a reply
kess Offline
Junior Member
*

Posts: 11
Joined: Mar 2010
Reputation: 0
Post: #13
RE: Internal server error 500 with php files
It seems that the ownership of your directories is not correctly set.
UserID that tries to run the script is 2001 but owner of scripts is 2002.

Fix it and it will work...
05-08-2011 12:12 AM
Find all posts by this user Quote this message in a reply
bederko Offline


Posts: 4
Joined: May 2011
Reputation: 0
Post: #14
RE: Internal server error 500 with php files
(05-08-2011 12:12 AM)kess Wrote:  It seems that the ownership of your directories is not correctly set.
UserID that tries to run the script is 2001 but owner of scripts is 2002.

Fix it and it will work...

Thx for your answer, can you write how fix it, please ?
05-08-2011 01:10 AM
Find all posts by this user Quote this message in a reply
kess Offline
Junior Member
*

Posts: 11
Joined: Mar 2010
Reputation: 0
Post: #15
RE: Internal server error 500 with php files
I assume that the interested domain name is "mydomain.com".
As root type what follows using SSH or directly on the server console:
cd /var/www/virtual
chown vu2002:www-data mydomain.com
chmod 770 mydomain.com
cd mydomain.com
chown vu2002:vu2002 htdocs -R
chmod 755 htdocs -R

Try again to browse your pages...
This type mismatch happens generally when you move web pages from one domain to anotherone using SSH...

In order to be sure that this won't happen again, use FTP instead.

Hope this helps.
Bye Kess.
05-08-2011 01:57 AM
Find all posts by this user Quote this message in a reply
bederko Offline


Posts: 4
Joined: May 2011
Reputation: 0
Post: #16
RE: Internal server error 500 with php files
(05-08-2011 01:57 AM)kess Wrote:  I assume that the interested domain name is "mydomain.com".
As root type what follows using SSH or directly on the server console:
cd /var/www/virtual
chown vu2002:www-data mydomain.com
chmod 770 mydomain.com
cd mydomain.com
chown vu2002:vu2002 htdocs -R
chmod 755 htdocs -R

Try again to browse your pages...
This type mismatch happens generally when you move web pages from one domain to anotherone using SSH...

In order to be sure that this won't happen again, use FTP instead.

Hope this helps.
Bye Kess.

Not work. This is the new suexec.log

Please help me Sad

[2011-05-05 14:27:31]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 14:29:19]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 20:43:11]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:15:35]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:15:37]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:18:33]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:26:20]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 21:52:25]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-05 22:18:59]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:18:59]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:21:06]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:21:06]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:29:11]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:29:11]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-05 22:31:02]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-05 22:31:02]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 09:43:29]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-07 14:38:15]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:15]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:38:24]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:24]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:38:38]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:38:38]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:39:25]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:39:25]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 14:55:05]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 14:55:05]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:02:51]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:02:51]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:11:28]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:11:28]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:17:11]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 15:17:11]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 15:30:35]: uid: (2000/vu2000) gid: (2000/vu2000) cmd: php5-fcgi-starter
[2011-05-07 18:07:18]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 18:07:18]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 18:07:24]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 18:07:24]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
[2011-05-07 18:16:48]: uid: (2002/vu2002) gid: (2002/vu2002) cmd: php5-fcgi-starter
[2011-05-07 18:16:48]: target uid/gid (2002/2002) mismatch with directory (2001/2001) or program (2001/2001)
05-08-2011 02:19 AM
Find all posts by this user Quote this message in a reply
kess Offline
Junior Member
*

Posts: 11
Joined: Mar 2010
Reputation: 0
Post: #17
RE: Internal server error 500 with php files
Please type the output of the following command there:
cat /etc/passwd | grep mydomain.com
05-08-2011 02:36 AM
Find all posts by this user Quote this message in a reply
bederko Offline


Posts: 4
Joined: May 2011
Reputation: 0
Post: #18
RE: Internal server error 500 with php files
(05-08-2011 02:36 AM)kess Wrote:  Please type the output of the following command there:
cat /etc/passwd | grep mydomain.com

vu2001:x:2001:2001:virtual-user:/var/www/virtual/nadherniludia.sk:/bin/false
vu2002:x:2002:2002:virtual-user:/var/www/virtual/nadherniludia.sk:/bin/false
05-08-2011 03:03 AM
Find all posts by this user Quote this message in a reply
kess Offline
Junior Member
*

Posts: 11
Joined: Mar 2010
Reputation: 0
Post: #19
RE: Internal server error 500 with php files
There's the error.
You can't have dual UserIDs and GroupIDs for the same domain.

Try to change vu2001 as follows:
vu2001:x:2001:2001:virtual-user:/var/www/virtual/old-nadherniludia.sk:/bin/false

and let me know if it works.

As I can understand, you only have 1 domain there, right ?
05-08-2011 03:16 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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