Apache + perl + cgi-bin

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.

Apache + perl + cgi-bin

Postby mr_density » Sat Jun 12, 2010 9:16 pm

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!
mr_density
Starting out
 
Posts: 13
Joined: Sun Mar 21, 2010 1:55 am
Model: SS-439 Pro

Re: Apache + perl + cgi-bin

Postby takashige » Mon Jun 14, 2010 11:02 am

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
Model: TS-459 Pro

Re: Apache + perl + cgi-bin

Postby takashige » Mon Jun 14, 2010 12:06 pm

oops, it’s just that I set the “Options” directive to wrong directory. Sorry.
takashige
New here
 
Posts: 2
Joined: Mon Jun 14, 2010 10:34 am
Model: TS-459 Pro

Re: Apache + perl + cgi-bin

Postby mr_density » Sat Jun 26, 2010 4:16 am

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
Model: SS-439 Pro

Re: Apache + perl + cgi-bin

Postby mr_density » Thu Jul 01, 2010 11:12 pm

Is it possible that there is no mod_perl installed in apache?
Is this a requirement for perl to work with apache?
mr_density
Starting out
 
Posts: 13
Joined: Sun Mar 21, 2010 1:55 am
Model: SS-439 Pro

Re: Apache + perl + cgi-bin

Postby daryanx » Thu Feb 02, 2012 1:43 pm

Mod-perl for apache.... I am struggling with this as well. Does anybody know if there has been a guide written for this?
daryanx
Starting out
 
Posts: 12
Joined: Sun May 08, 2011 2:42 pm
Model: TS-559 Pro+

Re: Apache + perl + cgi-bin

Postby mmuessig » Sun Jan 13, 2013 9:26 pm

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
mmuessig
New here
 
Posts: 7
Joined: Sun May 09, 2010 5:24 pm
Model: TS-239 Pro


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

Who is online

Users browsing this forum: madseason41 and 4 guests