Perl Script not Working Since Migration
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Perl Script not Working Since Migration
Perl Script not Working Since Migration
23-02-2014 6:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've been running a Perl script for probably about 5 years but since migration to the new platform it doesn't work.
When you goto the scripts location it just displays the script itself.
Is the perl location still /usr/bin/perl ?

Regards,
Ben
Re: Perl Script not Working Since Migration
23-02-2014 6:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
AddHandler cgi-script .cgi .pl
to your .htaccess, or move the script to the cgi-bin directory. It'll still need 700 permissions.
Gabe
Re: Perl Script not Working Since Migration
23-02-2014 6:30 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
When I go into filemanager I can't find the .htaccess file anywhere?
I've tried putting it into the CGI-BIN directory but still no luck...
Re: Perl Script not Working Since Migration
23-02-2014 8:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks,
Ben
Re: Perl Script not Working Since Migration
23-02-2014 8:52 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As long as there are no non-cgi script files (eg .php) in /public/cgi-bin moving its contents to the root /cgi-bin and disabling the root /.htaccess should be OK for most users.
David
Re: Perl Script not Working Since Migration
26-02-2014 2:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I think I may have deleted a CGI-BIN folder as when I first logged on (oops) - there appeared to be two ... I still have a folder in the root 'cgi-bin' and one under public but I get a file permission error when trying to write anything to the one under public.
I also get a permission error when I try and do anything to the .htaccess in the root ...
Any help appreciated ...
Re: Perl Script not Working Since Migration
26-02-2014 3:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
David
Re: Perl Script not Working Since Migration
26-02-2014 4:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Should my perl scripts be in the root version or the public/ (and then how should I set paths to other files within that script)?
the .htaccess has permission 644 but I seem unable to write to it (filezilla gives a 'critical file transfer error')
Andy
Re: Perl Script not Working Since Migration
26-02-2014 5:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Is the .htaccess file in / owned by root 0?
Gabe
Re: Perl Script not Working Since Migration
26-02-2014 7:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If all your pre-migration /cgi-bin content is independent of non /cgi-bin content (and vice versa), in my opinion it's far easier to put pre-migration /cgi-bin content in post-migration root /cgi-bin and remove the root /.htaccess along with /public/cgi-bin and /public/CGI-BIN.
I suggest seeing if the Control Panel File Manager application can delete the root /.htaccess file - it should be able to.
David
Re: Perl Script not Working Since Migration
27-02-2014 8:42 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Meanwhile, Hostopia's fix should help to minimise the number of sites broken during migration.
Gabe
Re: Perl Script not Working Since Migration
28-02-2014 2:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Still don't seem to have access to my root .htaccess (or to get a script to run from root /cgi-bin) but have added .htaccess in my /public (per Gabe's suggestion above) and moved my cgi scripts to a another directory there - and all seems to work fine now :).
One other quick thing (maybe covered elsewhere in forums) .. I had used Gabe's fix for tmp php session files using php.ini, is this still needed/possible on new server?
Re: Perl Script not Working Since Migration
28-02-2014 3:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Gabe's comments here provide more information including how to tidy up by removing your php.ini file and the links to it.
Re: Perl Script not Working Since Migration
02-03-2014 12:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Perl Script not Working Since Migration
02-03-2014 2:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
David
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Perl Script not Working Since Migration