Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Perl Script not Working Since Migration
Topic Options
- 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
- « Previous
-
- 1
- 2
- Next »
Re: Perl Script not Working Since Migration
05-03-2014 10:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Am also having trouble with cgi-bin.
Tried various settings but no matter where I put a 'hello word' cgi file I'm getting 'Internal Server Error' when I call it.
For now I want to use /public/cgi-bin/
What do I need to do to the root .htaccess file to allow this?
My root .htaccess currently has the following:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^cgi-bin(/.*|)$ CGI-BIN$1 [L,NC]
Also, is the shebang for perl still #!/usr/bin/perl ?
Thanks.
Tried various settings but no matter where I put a 'hello word' cgi file I'm getting 'Internal Server Error' when I call it.
For now I want to use /public/cgi-bin/
What do I need to do to the root .htaccess file to allow this?
My root .htaccess currently has the following:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteRule ^cgi-bin(/.*|)$ CGI-BIN$1 [L,NC]
Also, is the shebang for perl still #!/usr/bin/perl ?
Thanks.
Message 16 of 20
(376 Views)
Re: Perl Script not Working Since Migration
05-03-2014 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The root /.htaccess content is correct, it redirects to /public/CGI-BIN which should be a link to /public/cgi-bin where your CGIs go. File Manager doesn't show links but an FTP program should do.
Your CGIs need to be executable, did you set their file permissions (chmod) to 700?
That shebang for Perl is correct.
David
Your CGIs need to be executable, did you set their file permissions (chmod) to 700?
That shebang for Perl is correct.
David
David
Message 17 of 20
(376 Views)
Re: Perl Script not Working Since Migration
06-03-2014 12:20 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
OK so with that .htaccess in the root and then calling the script, it is just written to the screen rather than executed.
If I add AddHandler cgi-script .cgi .pl to the .htaccess, calling the script gives the Internal Server Error.
Tried 777 and 700 permissions.
If I add AddHandler cgi-script .cgi .pl to the .htaccess, calling the script gives the Internal Server Error.
Tried 777 and 700 permissions.
Message 18 of 20
(376 Views)
Re: Perl Script not Working Since Migration
06-03-2014 1:13 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Try removing the AddHandler directive from the root /.htaccess and put it in /public/.htaccess.
David
David
David
Message 19 of 20
(376 Views)
Re: Perl Script not Working Since Migration
06-03-2014 9:04 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
OK thanks - I have my 'hello world' script running from the \public\cgi-bin\ folder now.
Now need to work on the real scripts!
Now need to work on the real scripts!
Message 20 of 20
(376 Views)
- « Previous
-
- 1
- 2
- Next »
Topic Options
- 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