
08-02-2001, 04:37 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
New server with plesk can't execuete perl
I have just got this server, I can't seems to be able to execute my all perl scripts, all the permissions are intact.
Where should I go to fix it?
|

08-02-2001, 04:59 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2001
Location: New York
Posts: 578
|
|
What error are you getting?
Give more info.
__________________
PalmVersa Communications
PalmVersa.com
ICQ# 120775841
|

08-02-2001, 05:04 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Check this link
http://209.217.52.118/cgi-bin/exam/sun/convert.cgi
What I've checked..
I have also enable CGI support for this domain.
All permissions are correct.
All path in config files are correct.
|

08-02-2001, 05:19 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Sep 2000
Location: Switzerland
Posts: 65
|
|
Uncomment:
#AddHandler cgi-script .cgi
|

08-02-2001, 05:22 PM
|
|
Web Hosting Master
|
|
Join Date: Jul 2001
Location: New York
Posts: 578
|
|
__________________
PalmVersa Communications
PalmVersa.com
ICQ# 120775841
|

08-02-2001, 05:48 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Ok done that and reboot the server and still the same result.
What should I do next?
|

08-02-2001, 06:24 PM
|
|
A#* Duke Of New York
|
|
Join Date: Jun 2001
Location: Chicago, IL
Posts: 1,953
|
|
Is it possible the script is bad? Or some problem with perl? Run perl -c scriptname
|

08-02-2001, 06:27 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
I checked the server log. What does that mean?
Quote:
Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
|
|

08-02-2001, 06:33 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Quote:
Originally posted by davidb
Is it possible the script is bad? Or some problem with perl? Run perl -c scriptname
|
[root@cheng forum]# perl -c cp.cgi
cp.cgi syntax OK
|

08-02-2001, 06:36 PM
|
|
A#* Duke Of New York
|
|
Join Date: Jun 2001
Location: Chicago, IL
Posts: 1,953
|
|
Dope, we all missed the easy answar, check error log, post what that says, it will almost always point to the problem.
|

08-02-2001, 06:42 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Quote:
Originally posted by davidb
Dope, we all missed the easy answar, check error log, post what that says, it will almost always point to the problem.
|
Here is the server logs
Quote:
:07 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:15:09 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:16:10 2001] [error] [client 210.186.221.100] File does not exist: /usr/local/plesk/apache/vhosts/certifyexpress.com/httpdocs/games/crossword/images/crossword.gif
[Thu Aug 2 17:16:27 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:16:29 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:20:29 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:20:35 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:20:37 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:20:38 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:21:56 2001] [error] [client 24.29.234.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/exam/sun/convert.cgi
[Thu Aug 2 17:22:07 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:22:09 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:22:10 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
[Thu Aug 2 17:22:12 2001] [error] [client 210.186.221.100] Premature end of script headers: /usr/local/plesk/apache/vhosts/certifyexpress.com/cgi-bin/forum/cp.cgi
|
|

08-02-2001, 08:53 PM
|
|
A#* Duke Of New York
|
|
Join Date: Jun 2001
Location: Chicago, IL
Posts: 1,953
|
|
From the looks of it, its not a server problem, its a script problem. Was the script uploaded in the right mode?
|

08-02-2001, 09:34 PM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Yes.
I actually tar the script from my old server and the untar to this new server.
|

08-04-2001, 06:58 AM
|
|
Registered User
|
|
Join Date: Feb 2001
Posts: 517
|
|
Found the problem and now all my scripts are working. I notice plesk are very sensitive with perl scripts. For those who are facing this problem this i what I've done.
chmod -R 755 cgi-bin
chown -R yourftpusername:pleskcln cgi-bin
I don't know why all my script and files have to be set to 755 in cgi-bin. Anybody care to explain why? With my old RaQ3 some script can be 644 but this can all have to be set t 755.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
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
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|