Apache + perl + cgi-bin

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
mr_density
Starting out
Posts: 13
Joined: Sun Mar 21, 2010 1:55 am

Apache + perl + cgi-bin

Post by mr_density »

I installed perl (with ipkg) on my qnap 219p but now I also want to enable *.pl scripts to run in my cgi-bin dir in the webserver(/share/Qweb/cgi-bin). At first the browser only showed the perl code so I had to enable perl in the apache.conf file. I added the following to my apache.conf to enable perl :

Code: Select all

AddHandler cgi-script .cgi .pl

<Directory />
  Options FollowSymLinks +ExecCGI
  AllowOverride None
</Directory>
But when I open the browser now and enter the url to my perl script I get : You don't have permission to access /cgi-bin/tm/co_login.pl on this server.

Any ideas are welcome how to solve this!
takashige
New here
Posts: 2
Joined: Mon Jun 14, 2010 10:34 am

Re: Apache + perl + cgi-bin

Post by takashige »

I’m trying to do same thing on TS-659 pro, and have same problem as above.
The permission value of perl script is 755.
takashige
New here
Posts: 2
Joined: Mon Jun 14, 2010 10:34 am

Re: Apache + perl + cgi-bin

Post by takashige »

oops, it’s just that I set the “Options” directive to wrong directory. Sorry.
mr_density
Starting out
Posts: 13
Joined: Sun Mar 21, 2010 1:55 am

Re: Apache + perl + cgi-bin

Post by mr_density »

Can you post your apache.conf?
I tried setting the directive but cant get it working. While I can execute a perl script on my server via putty so I know perl is working..

Hope someone can help?!
mr_density
Starting out
Posts: 13
Joined: Sun Mar 21, 2010 1:55 am

Re: Apache + perl + cgi-bin

Post by mr_density »

Is it possible that there is no mod_perl installed in apache?
Is this a requirement for perl to work with apache?
daryanx
Starting out
Posts: 12
Joined: Sun May 08, 2011 2:42 pm

Re: Apache + perl + cgi-bin

Post by daryanx »

Mod-perl for apache.... I am struggling with this as well. Does anybody know if there has been a guide written for this?
mmuessig
New here
Posts: 7
Joined: Sun May 09, 2010 5:24 pm

Re: Apache + perl + cgi-bin

Post by mmuessig »

I have the same problems, getting perl scripts run on built-in apache on qnap ts439 pro II...

IMHO, the build-in apache comes with NO perl support!
you can check your compiled in modules with the command /usr/local/apache/bin/apache -l

i was wondering if one has solved this yet?

isn't it possible to run perl scripts as cgi-scripts and with the help of perl-cgi (which you can install as ipkg package)?

Anyone out there who has a running apache on qnap with perl support?

thanks
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”