cancel
Showing results for 
Search instead for 
Did you mean: 

Where to place Perl scripts

UncleZen
Grafter
Posts: 86
Thanks: 6
Registered: ‎15-08-2008

Where to place Perl scripts

Theres a /cgi-bin folder
Theres also a /public/CGI-BIN folder
The FAQ says:
[perl scripts] will need to be in the ‘cgi-bin’ folder on the new CGI platform. On the current platform, perl scripts will work outside of the cgi-bin folder. These scripts are likely to break after the migration – so you’re advised to move them
So as it specifically hasnt capitalised the cgi-bin, can I assume its the /cgi-bin folder in the root? And not the /public/CGI-BIN folder?
1 REPLY
Community Gaffer
Community Gaffer
Posts: 13,575
Thanks: 1,252
Fixes: 103
Registered: ‎04-04-2007

Re: Where to place Perl scripts

There is an .htaccess file in the root directory of most customer's webspace that rewrites HTTP requests for the /cgi-bin/ to the /public/CGI-BIN directory
If you haven't touched this .htaccess file then your perl scripts should reside in the /public/CGI-BIN directory
Alternatively you can comment out/rename/delete the .htaccess file and move everything to the /cgi-bin folder. Do *not* do this though if you have PHP scripts in your cgi-bin (they probably won't work if placed under the cgi-bin in root).

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵