
13th January 2010, 20:58
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Internal Server Error when executing .cgi files
Hello, I´m trying to install Movable Type 5 on my server and I´m getting an Internal Server Error, I have uploaded the files using ASCII modes, the owner of the folder is ispconfig user and not root, cgi is enabled on the domain, I´ve tried to do all that i found searching on this forum but it didnt work, what should i do?
PS: I forgot to install squirremail before ispconfig, and now its not working mydomain.com/webmail gives me an 404 error is this reparable?
|

13th January 2010, 21:42
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
404 must be a missing symlink...
try this:
Code:
ln -s /usr/share/squirrelmail/ /var/www/webmail
|

13th January 2010, 22:36
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
Quote:
|
Hello, I´m trying to install Movable Type 5 on my server and I´m getting an Internal Server Error, I have uploaded the files using ASCII modes, the owner of the folder is ispconfig user and not root, cgi is enabled on the domain, I´ve tried to do all that i found searching on this forum but it didnt work, what should i do?
|
Take a look in the error log of the website and post the exact error message that is listed there.
|

14th January 2010, 03:09
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Which file should i post here?
|

14th January 2010, 11:03
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Apache's error log.
|

14th January 2010, 20:34
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
This is the /var/www/clients/client1/web2/log/error.log content:
Code:
[Thu Jan 14 20:32:53 2010] [error] [client 89.141.98.120] suexec policy violation: see suexec log for more details
[Thu Jan 14 20:32:53 2010] [error] [client 89.141.98.120] Premature end of script headers: mt.cgi
Last edited by sadnem; 14th January 2010 at 20:50.
|

14th January 2010, 20:39
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
And im also having other problem, subdomain.domain.ltd/cgi-bin/ doesn´t exist so i haven´t figured out how to execute cgis on subdomains via /cgi-bin/ and not .htaccess and so on. (but now even i execute them with an .htaccess i got an Internal Error because of the posted there)
|

15th January 2010, 13:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,591 Times in 2,443 Posts
|
|
Do you have a suexec log somewhere on your system? E.g. in /var/log/ or /var/log/apache2/ or /var/log/httpd/? Are there any errors in it?
|

15th January 2010, 18:23
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Suexec log:
Code:
[2010-01-14 20:32:53]: uid: (5005/web2) gid: (5005/5005) cmd: mt.cgi
[2010-01-14 20:32:53]: target uid/gid (5005/5005) mismatch with directory (0/0) or program (0/0)
[2010-01-14 20:39:57]: uid: (5005/web2) gid: (5005/5005) cmd: mt.cgi
[2010-01-14 20:39:57]: target uid/gid (5005/5005) mismatch with directory (0/0) or program (0/0)
[2010-01-14 20:39:59]: uid: (5005/web2) gid: (5005/5005) cmd: mt.cgi
[2010-01-14 20:39:59]: target uid/gid (5005/5005) mismatch with directory (0/0) or program (0/0)
[2010-01-14 20:40:00]: uid: (5005/web2) gid: (5005/5005) cmd: mt.cgi
[2010-01-14 20:40:00]: target uid/gid (5005/5005) mismatch with directory (0/0) or program (0/0)
|

16th January 2010, 11:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,184 Times in 3,202 Posts
|
|
The cgi file mt.cgi is owned by the wrong linux user. Please correct the owner of the file so that it is the same then the user and group of the website.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:12.
|
Recent comments
1 day 4 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 17 hours ago
1 day 18 hours ago
1 day 20 hours ago
1 day 21 hours ago
1 day 22 hours ago
2 days 14 hours ago
2 days 15 hours ago