[CGI2.03] What is the path to perl?

/usr/bin/perl

You can also find information on paths to other useful programs by logging in to your Hosting cPanel v7.5 Control Panel and selecting 'Website Diagnostics', from there just select 'Paths and Versions'.

Note that if you are writing CGI scripts in Perl, the first line of the script should be the path to perl, prefixed with '#!', i.e., '#!/usr/bin/perl'.

Was this answer helpful?

 Print this Article

Also Read

[CGI2.07] What is the path to sendmail?

Should you need the absolute path to sendmail for use in a CGI script, it's in...

[CGI2.01What permissions do I need to set CGI scripts to?

Files and directories within your cgi-bin directory (or CGI scripts elsewhere) should be set to...

[CGI2.06] Does Hosting cPanel support Image::Magick?

Yes we do, and in case you need to know the exact version number, at the time of writing, the...

[CGI2.05] Is PHP a CGI or Apache module?

PHP runs as a cgi at Hosting cPanel – this is because it is more secure than running it as an...

[CGI2.04] How do I connect to my MySQL database from a Perl CGI script?

Perl's DBI module provides an interface to MySQL databases for CGI scripts. A commented example...