Tags:
create new tag
, view all tags

Question

I managed to install just about everything the Install Docs recommended, and a first look at the "view" Script shows that it seems to work.

However, I've got an annoying problem:

If the "view" Script isn't named view.pl, it just doesnt work. I tried the .htaccess Trick with "SetHandler cgi-script", however it didn't change anything.

For the fun of it, I renamed view.pl back to "view" and accessed it via a browser - returns a 404 - even though the file is there. This only happens with the "SetHandler cgi-script" directive. As soon as I rename it back to view.pl - everything works. Without the "SetHandler cgi-script" directive, the script just gets displayed as plaintext.

I'm hoping that someone has a solution for my problem, I'd like to change the URLs from:

www.example.com/bin/view.pl/Main/ to www.example.com/bin/view/Main/

As far as testenv.pl is concerned, I don't get any errors and the PATH_INFO part works flawlessly, it just needs the .pl extension.

Thanks in advance for any suggestions, Jan

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: none yet
Server OS: Fedora Core 2 with Plesk 7.5.3
Web server: 2.0.51-2.9
Perl version: Perl: 5.8.3 / mod_perl: 1.99_12-2.1
Client OS: Windows Server 2003, SP1
Web Browser: Firefox 1.0.4
Categories: Installation

-- JanBouwers - 20 Jun 2005

Answer

Great! I just found the answer here. I've been looking for "+Plesk" all the time, since I figured it would have to be a Plesk specific problem, but it was not:

WiktorWodecki 's Comment on http://twiki.org/cgi-bin/view/Codev/ModPerl has the solution I needed:

 
                Options +ExecCGI
                SetHandler cgi-script
                Allow from all

                # mod_perl stuff
                SetHandler perl-script
                PerlResponseHandler ModPerl::Registry
                PerlSendHeader On
                PerlOptions +ParseHeaders
        

was all that I needed to be able to "view" the "view script" without having to use the .pl extension.

I found out that the " PerlResponseHandler ModPerl::Registry" is the important part. The scripts still works fine without "SetHandler cgi-script".

Ah well. Stupid me, just a matter of finding the correct search terms.

-- JanBouwers - 20 Jun 2005

 
Topic revision: r2 - 2005-06-26 - SueLocke
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.