Updated: 28 September 2026 · Applies to: Perl 5 on cPanel & WHM 138 (Jupiter theme)
On our Linux servers, Perl is at /usr/bin/perl. Start your Perl CGI scripts with this line:
#!/usr/bin/perl
- Upload scripts in ASCII (text) mode, so the line endings are correct; Windows line endings cause "500 Internal Server Error".
- Set the script's permissions to
755. - Install extra modules in cPanel under Software › Perl Modules.
In Terminal, which perl and perl -v show the path and version.