News:

LVCS.NET offers low cost domain registration services.

Main Menu

Perl scripts

Started by sean, November 30, 2005, 06:27:04 PM

Previous topic - Next topic

sean

Is there anyplace we need to put our perl scripts for them to work?  I have mind in a cgi-bin directory with perl enabled, however, my scripts are not executing.

Any ideas?

sixthcrusifix

#1
Quote from: sean on November 30, 2005, 06:27:04 PM
Is there anyplace we need to put our perl scripts for them to work?  I have mind in a cgi-bin directory with perl enabled, however, my scripts are not executing.

Any ideas?

Do you have your pearl settings to DIRECT/CGI and not mod_PEARL ? It's in the Scripting Options Panel.
Visite me website at http://www.sixthcrusifix.com

sean


sixthcrusifix

Quote from: sean on November 30, 2005, 06:30:50 PM
Yup.

It's Perl btw. :)

Typos Typos, sorry. ANyway.. um. . . . I dunno I'm a PHP guy I know nothing of how perl works. Isn't it like ruby where you can switch to mod_perl and embed it into html?
Visite me website at http://www.sixthcrusifix.com

Ben

#4
Make sure your scripts are chmod so that they allow execution. I believe this is 644, but I'm not sure.

As I was told by the admin yesterday in the chat, Perl doesn't have a feature like this. Ruby has eruby for .rhtml files (which can be used by this server), and Python has .psp (not on the server yet...)
--Ben
Ben@freepgs.com

admin

You must chmod the files to 755 and include the proper path to perl in the shebang line.

(i.e. your script should start with #!/usr/bin/perl)

644 are the default permissions of files on this system.  It means rw-r--r-- (r/w user, read group, read other)
You want 755 (rwxr-xr-x) r/w/x user, read/exec group, read/exec other

You can also chmod via the FreePgs file manager and select the 755/rwxr-xr-x option for the file.

Thank you,
FreePgs.com Admin

sean

Cool thanks!

Where is the perl sendmail program located on the server? /usr/lib/sendmail ?

webzone (archived)

#7
QuoteWhere is the perl sendmail program located on the server? /usr/lib/sendmail ?

I believe it is /usr/sbin/sendmail, but I'm really not sure.

admin

/usr/sbin/sendmail is the correct path.

Thank you,
FreePgs.com Admin

megawatt

My Perl CGI scripts dont work too. I have them in the cgi-bin directory and chmodded to 755. Perl is enabled. Any advice? Thanks.

webzone (archived)

QuoteMy Perl CGI scripts dont work too.

When you say that they don't work, do you mean that you get nothing back when you request the file in your browser, or that you get the source code back?

If you get nothing, make sure that there are no errors in the script and that you uploaded it as ASCII in your FTP client.

megawatt

Yes, I get nothing back and the file was uploaded in ASCII. There shouldnt be any error with the script since it works in my other site hosted with PLESK/LCVS.

zz4

I noticed my scripts in cgi-bin seem to be having problems.




Page does not exist.




Configuration problem.




A file manager script freepgs helped to make work today ZILCH. I touched nothing and have been away.

admin

If you are getting "Page does not exist" and "Configuration problem".  Please check your internet device and/or that the files still exist in your account.

Be sure you have password protected access to these files (otherwise anyone that can access the file can remove it and other files from your account)

Thank you,
FreePgs.com Admin