hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : New server with plesk can't execuete perl
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

New server with plesk can't execuete perl

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-02-2001, 04:37 PM
certify certify is offline
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?

Reply With Quote


Sponsored Links
  #2  
Old 08-02-2001, 04:59 PM
Palm Palm is offline
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

Reply With Quote
  #3  
Old 08-02-2001, 05:04 PM
certify certify is offline
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.

Reply With Quote
Sponsored Links
  #4  
Old 08-02-2001, 05:17 PM
certify certify is offline
Registered User
 
Join Date: Feb 2001
Posts: 517
Here is my httpd.conf file looks like.

http://209.217.52.118/httpd.txt

Reply With Quote
  #5  
Old 08-02-2001, 05:19 PM
thornado thornado is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Location: Switzerland
Posts: 65
Uncomment:

#AddHandler cgi-script .cgi

Reply With Quote
  #6  
Old 08-02-2001, 05:22 PM
Palm Palm is offline
Web Hosting Master
 
Join Date: Jul 2001
Location: New York
Posts: 578
Remove #

__________________
PalmVersa Communications
PalmVersa.com
ICQ# 120775841

Reply With Quote
  #7  
Old 08-02-2001, 05:48 PM
certify certify is offline
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?

Reply With Quote
  #8  
Old 08-02-2001, 06:24 PM
davidb davidb is offline
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

Reply With Quote
  #9  
Old 08-02-2001, 06:27 PM
certify certify is offline
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

Reply With Quote
  #10  
Old 08-02-2001, 06:33 PM
certify certify is offline
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

Reply With Quote
  #11  
Old 08-02-2001, 06:36 PM
davidb davidb is offline
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.

Reply With Quote
  #12  
Old 08-02-2001, 06:42 PM
certify certify is offline
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

Reply With Quote
  #13  
Old 08-02-2001, 08:53 PM
davidb davidb is offline
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?

Reply With Quote
  #14  
Old 08-02-2001, 09:34 PM
certify certify is offline
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.

Reply With Quote
  #15  
Old 08-04-2001, 06:58 AM
certify certify is offline
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.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cisco Researcher Discovers Possible Exploit Vector for DarkLeech Attacks Web Hosting News 2013-04-26 10:19:35
Parallels Plesk Panel Vulnerability Revealed by Hacker Selling Exploit Web Hosting News 2012-07-11 10:34:13
WHIR Demo: Parallels Plesk Panel Whir Tv 2012-03-06 18:07:47
Web Host Liquid Web Donates $10,000 to The Perl Foundation Web Hosting News 2011-09-23 18:45:40
Web Host myhosting Offers Parallels Plesk Panel 10 VPS Plans Web Hosting News 2011-07-07 19:54:45


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?