• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

What is the Perl shebang - path to perl?

J

joelmoss

Guest
Can someone tell me what the correct path to perl is for use in perl scripts?
 
Perl SheBang Syntax

If you are using PSA correctly then IIS should be installed.

Right Click the desired domain
Click Properties
Click The Home Directory Tab
Click Configure
Click Add
Browse to C:\Program Files\Swsoft\Plesk\Perl\bin
Select either Perl.exe or PerlIIS.dll
Click OK
Rename Program Files to Progra~1 in the directory window
Use this same method for .pl, .plx and .cgi files

I strongly recommend you use the .dll filter versus the executable for speed.

In your code, the correct syntax is:
#!Perl


Hope this helped.
 
You should not add extensions to IIS this way. Plesk adds them. If for some reason they aren't there, simply check the domain settings in Plesk.

He is correct for one variable as to the path. There are others and some vary depending on the application.

I would recommend checking a site such as www.activestate.com which creates the primary perl solution for windows. (there are few others, but none as stable or as widely known or used.)
 
Back
Top