This article provides essential information about running Perl scripts on A2 Hosting servers.
The correct permissions for Perl script files depends on the script's particular function:
Perl script files can have a .pl or .cgi extension. However, like file permissions, the file extension depends on the script's particular function:
A2 Hosting's servers currently use Perl version 5.10.
To determine the Perl version from the command line, you can type the following command:
The absolute path to the Perl executable on A2 Hosting's servers is /usr/bin/perl. The /usr/bin directory is in the default path, however, so generally you do not need to include the full path when you run Perl scripts from the command line. Just type the following command, replacing filename with the name of your script file:
When you use FTP to upload Perl scripts to your site, always use ASCII mode. If you upload scripts in binary mode, they do not work and you receive an “Internal Server Error: Premature End of Script Headers” message (500 Internal Server Error) when you view the page.
To view the official online Perl documentation, please visit http://www.perl.org/docs.html.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.