ispCP - Board - Support
[SOLVED] Perl scripts in websites don't work - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] Perl scripts in websites don't work (/thread-10931.html)



[SOLVED] Perl scripts in websites don't work - mike548141 - 06-10-2010 04:35 AM

Hi all,

I've had a look around but its possible I'm just missing something. Basically I can not run perl scripts in websites hosted on my ispCP server.

ispCP 1.0.5 setup on Suse 11.1, all works well, hosting a number of websites (vhost) for HTTP & FTP. Not really using mail etc..

I wanted to run a script called rss2cisco.pl on the server, it converts RSS feeds to CM-XML.
- I put the script in htdocs and pointed a browser at it, the webserver let me download the script (http://<domain>/rss2cisco.pl).
- I created a .htaccess in htdocs with a addhandler for CGI (.pl) and a +Exec option set. When I pointed a web browser at it I got a Error 500.
- I moved the script to <domain>/cgi-bin and removed the .htaccess from htdocs, I still got a error 500 (http://<domain>/cgi-bin/rss2cisco.pl), deleted the script from cgi-bin and I get a error 404.

Perl is installed and I can SSH to the server and run the perl script at the console successfully.
The script is chmod 755 and "perl -wc rss2cisco.pl" shows no syntax errors.

The domain has both PHP and CGI enabled on ispCP.

Help please! How do I run perl scripts in ispCP created websites. I see on the comparison chart it is a feature of ispCP.
http://isp-control.net/documentation/about:comparsion

Completely separate matter= Any thoughts on if/when Tomcat and Python support will be integrated into ispCP?

MC


RE: Perl scripts in websites don't work - joximu - 06-10-2010 07:46 PM

error logs?


RE: Perl scripts in websites don't work - mike548141 - 06-22-2010 10:56 PM

I've been watching /var/log/apache/error_log and nothing appears there. There is a 403 message in the access log

x.x.x.x - - [23/Jun/2010:00:51:56 +1200] "GET /cgi-bin/test.pl HTTP/1.1" 403 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"

Ta,

MC
Sorry forgot to say nothing comes ups in sites log either i.e. /var/log/apache2/nova.net.nz-combined.log
Hello World perl scripts at
http://117.18.82.10/cgi-bin/test.cgi
http://117.18.82.10/cgi-bin/test.pl

and

http://nova.net.nz/cgi-bin/test.cgi
http://nova.net.nz/cgi-bin/test.pl


RE: Perl scripts in websites don't work - joximu - 06-22-2010 11:09 PM

suexec.log?
other error.logs?

/var/log/apache2/users/site-error.log

/J


RE: Perl scripts in websites don't work - mike548141 - 06-23-2010 04:55 PM

Hi Joximu

Thanks for your help (as always). Suexec held they key to the problem "file is writable by others:"
I used chmod to set the rights to 0750 and Hello World now works

Thanks for your help!

MC


RE: [SOLVED] Perl scripts in websites don't work - joximu - 06-23-2010 05:42 PM

you're welcome Smile

Joxi
[close]