Perl on cpanel

Hey Guys,

Just wondering if something specific needs to be done to run perl scripts on an cpanel/whm server...
Currently I am getting:

500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brad HoweDevOps ManagerCommented:

Where are you executing your scripts from?

Did you try to put your script on cgi-bin folder. Then try to execute via
Brad HoweDevOps ManagerCommented:
You could also create a .htaccess file in the folder you are looking to use .pl scripts and add the following.

AddHandler cgi-script .pl .cgi
Options Includes ExecCGI



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The first thing to check is the web server error log, as the error message suggests.

Some possible causes of a 500 error are:

1) Script uploaded from Windows to *nix server in binary mode instead of ascii mode

2) Permission settings are wrong, which is preventing the web server from executing the script.

3) The shebang line missing or does not have the correct path to perl
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.