![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Perl help
I just installed a script, everything was installed properly (to my knowledge) but I seem to have an error when trying to run it.
http://www.ydl.ca/cgi-bin/puw/puw_setup.cgi Anyone know where I should start?
__________________
If you click here, you will make money. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
ssh as root and do "tail /var/log/messages" and that might give you a bit more input as to what exactly the error was.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
make sure you give it permisions to excecute.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Feb 2003
Location: Austin
Posts: 1,373
|
I assume script255 is a script its calling make sure its set to 777 just for the hell of it.
/home/www/ydl.ca/cgi-bin/puw/puw_setup.cgi should it not be usr/home/www ect or does that even matter. Im not a perl expert I'm a ASP/VB expert who just converted and saw the light of php
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
login with ssh and do:
perl -pw /home/www/ydl.ca/cgi-bin/puw/puw_setup.cgi you should see some detailed errors. if you say its 755 then it looks you didn't uploaded in ascii |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Aug 2002
Location: The Ditch
Posts: 8,919
|
kick the box
![]()
__________________
![]() www.MAKINGCOIN.com icq. 166-662-831 "Start making large coin!" Daddy I Get Paid To Be A Whore - Coming Soon |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Near the top of the script, like the third or fourth line down, add this line, it'll be more helpful than a "malformed header" message:
use CGI::Carp qw(fatalsToBrowser);
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Problem is that the script seems to be handling errors itself, so it's hard to say exactly what the issue is. There have been a few suggestions here that might help though.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
Quote:
"Could not execute script" contradicts that I'm not seeing it like "Could not execute script255" that 255 looks more like a line number or an error code |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
oh
![]()
__________________
If you click here, you will make money. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Join Date: Jun 2002
Location: Seattle
Posts: 1,062
|
Just get someone you trust onto your server to look at it, this isn't going to go anywhere without real error messages...
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Confirmed User
Join Date: Feb 2002
Location: Canada
Posts: 3,547
|
Quote:
![]()
__________________
If you click here, you will make money. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
![]()
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
Maybe make sure it was uploaded properly? Not sure without looking at the code and errors specifically but sometimes if you upload scripts improperly it will screw them up. Just another thing to look at and im not sure if this script would work at all in that instance, but just an idea.
__________________
Latest MMA news. http://www.mmawrapup.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
Confirmed User
Join Date: Jun 2003
Posts: 317
|
(grope, grope, I hope that's the elephant's trunk omg)
OK, what the error message from web says to me is only that for some reason the script could not execute - could be anything, if it's all 755, double-check your paths, make sure the script doesn't require any other Perl packages, make sure you can do vi thescript.pl (whatever the script's full name is) and it isn't all on one line with lots ^Ms all over the place. (If so, it won't run, those mean it's a text file that was extracted or uploaded as binary). Command line is the only way to go here ./thescript.pl If it doesn't give errors on command line, that'd be weird. Check your web server error log for clues. What's happening is invisibly anything on the web sends what's called a header like Content-Type:text/html With two carriage returns after it. If the script can't execute, the header gets garbled by the error message. -doug
__________________
XYCash International Gay Affiliate Program |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 |
Registered User
Join Date: Jun 2003
Posts: 83
|
Even more basic...did you edit the script?
If so, you need to use a text editor that keeps the ASCII formatting intact (wordpad doesn't do this by default.) Make sure "word wrap" is OFF. Upload in ASCII mode with your FTP client. CHMOD files 755. If you don't want to invoke the CGI module, Creata a blank text file in notepad, name it error.txt, and upload it into your main HTML directory. Then add this code to the top of your script directly below the shebang- BEGIN { open (STDERR, ">/path/to/error_file/error.txt"); } replace the path with the server side path to the text file. Then just open error.txt in browser to get more complete error messages. GL |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
Confirmed User
Join Date: Feb 2002
Location: Seattle
Posts: 1,070
|
run perl -wc script in the cgi's directory. that will catch most problems.
now the issue here is apparently that puw_setup.cgi is calling a script (one way or another). and is printing the string "Cannot execute the script" and "255" (that is, seperately). 255 is the return code. i'd bet on it. it's printing it before the Content-type header is printing. check with your host... but maybe the ownership of the script is wrong? or maybe the permissions on the script directory are wrong (they should not be 777 (nor should the script)). if you aren't sure how to check that, log in to the server, to the cgi directory, and run: "ls -alR" and post the output somewhere, and we can tell ya.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 | |
Confirmed User
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |