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.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

Server management

on-demand administration, hardening, migrations and monitoring.

Was this answer helpful?

Still stuck? Open a ticket