FreePgs.com Forum

FreePgs Related => Support Requests => Topic started by: sean on November 30, 2005, 06:27:04 PM

Title: Perl scripts
Post by: 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?
Title: Re: Perl scripts
Post by: sixthcrusifix on November 30, 2005, 06:28:20 PM
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.
Title: Re: Perl scripts
Post by: sean on November 30, 2005, 06:30:50 PM
Yup.

It's Perl btw. :)
Title: Re: Perl scripts
Post by: sixthcrusifix on November 30, 2005, 07:45:27 PM
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?
Title: Re: Perl scripts
Post by: Ben on November 30, 2005, 07:56:08 PM
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...)
Title: Re: Perl scripts
Post by: admin on November 30, 2005, 08:08:39 PM
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
Title: Re: Perl scripts
Post by: sean on December 09, 2005, 05:01:02 AM
Cool thanks!

Where is the perl sendmail program located on the server? /usr/lib/sendmail ?
Title: Re: Perl scripts
Post by: webzone (archived) on December 09, 2005, 05:03:21 AM
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.
Title: Re: Perl scripts
Post by: admin on December 09, 2005, 06:27:20 AM
/usr/sbin/sendmail is the correct path.

Thank you,
FreePgs.com Admin
Title: Re: Perl scripts
Post by: megawatt on December 23, 2005, 10:08:41 AM
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.
Title: Re: Perl scripts
Post by: webzone (archived) on December 23, 2005, 08:15:55 PM
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.
Title: Re: Perl scripts
Post by: megawatt on December 23, 2005, 11:54:17 PM
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.
Title: Re: Perl scripts
Post by: zz4 on December 29, 2005, 10:48:52 PM
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.
Title: Re: Perl scripts
Post by: admin on December 31, 2005, 03:34:02 AM
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