Page 1 of 1

Apache + perl + cgi-bin

Posted: Sat Jun 12, 2010 9:16 pm
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!

Re: Apache + perl + cgi-bin

Posted: Mon Jun 14, 2010 11:02 am
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.

Re: Apache + perl + cgi-bin

Posted: Mon Jun 14, 2010 12:06 pm
by takashige
oops, it’s just that I set the “Options” directive to wrong directory. Sorry.

Re: Apache + perl + cgi-bin

Posted: Sat Jun 26, 2010 4:16 am
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?!

Re: Apache + perl + cgi-bin

Posted: Thu Jul 01, 2010 11:12 pm
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?

Re: Apache + perl + cgi-bin

Posted: Thu Feb 02, 2012 1:43 pm
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?

Re: Apache + perl + cgi-bin

Posted: Sun Jan 13, 2013 9:26 pm
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