InMotion Hosting Support Center

Getting Started with Perl


beaglelady
Asked:
2013-05-17 10:14 am EST

Hits: 935
Where do I put perl scripts? How do I invoke them from the web? Are any sample perl scripts available that should work on the InMotion servers?

You must login before you can ask a follow up question.

You must login before you can submit an answer.

With my account type I don't have access to SSH
beaglelady
16 Points
2013-05-19 02:38 pm EST
How to run a simple perl program (script) from my home area
chambe31
10 Points
2019-04-18 06:45 pm EST

OTHER ANSWERS

0

John-Paul
Staff
31,633 Points
2013-05-17 10:43 am EST
Hello beaglelady,

Thank you for your question. Here is a link to our tutorial on installing a Perl module in cPanel.

Then I recommend the Learn Perl site, since it includes tutorials from beginner to advanced levels.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

You must login before you can post a comment about this answer.

Thanks but what about my own scripts (I didn't write them.) Do they go in cgi-bin or somewhere else?
beaglelady
16 Points
2013-05-17 10:57 am EST
Hello beaglelady,

Here is a link to a similar question on finding the path to Perl .

But, you can put it anywhere in your account and just specify the path when you call it in.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
John-Paul
31,633 Points
Staff
2013-05-17 11:55 am EST
0

chambe31
2019-04-19 6:33 am EST
The perl script can be anywhere.
1st line should be:
#!/usr/bin/perl or #!/usr/local/bin/perl - both work for me.
KEY is, permission on the .pl file must be 755

Jim

You must login before you can post a comment about this answer.

0

Arn
Staff
42,973 Points
2019-04-19 8:21 am EST
Hello Chambe31,

Running a PERL script is similar to running a script in HTML. For example, you can call a script to run when using a form. As per the previous replies, you will see that your script needs to start with the shebang (#!/) - for more information on PERL in cPanel, check out this documentation from cPanel.

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!