Forum Home
Press F1
 
Thread ID: 62842 2005-10-21 07:02:00 Perl CGI Scripts with Apache Dannz (1668) Press F1
Post ID Timestamp Content User
398111 2005-10-21 07:02:00 I have VOCP installed and i want to use the web interface

the interface is here: dannz.homelinux.com
For some reason i get 403 forbidden

How can i allow perl cgi scripts to run

(the site will be up till 10:30 after which i have to shut my computer down)
Dannz (1668)
398112 2005-10-21 07:08:00 perl scripts must be in a directory that Apache thinks is "CGI" safe.
check the config for apache i think its under scripts.

if you are on *NIX....

put perl scripts in www/cgi-bin/*

new URL will be www.yoursite.com/cgi-bin/script.pl
robsonde (120)
398113 2005-10-21 07:14:00 i guess i will need to copy all associated files into the cgi-bin directory as well? Dannz (1668)
398114 2005-10-21 07:15:00 i would think so, what files?? robsonde (120)
398115 2005-10-21 07:17:00 Images etc Dannz (1668)
398116 2005-10-21 07:18:00 Its working now thanks Dannz (1668)
398117 2005-10-21 07:25:00 then if you want nice clean URL's then setup mod_rewrite to magic the URL's from one thing to another.

EG:
www.theanswerguy.co.nz
is what a user puts in to the browser, the Mod_rewrite changes it to.....

www.theanswerguy.co.nz

to do this we have some goo line in the httpd.conf


LoadModule rewrite_module /usr/lib/apache/modules/mod_rewrite.so
RewriteEngine on
RewriteRule ^/article/(.*)$ /cgi-bin/view?$1 [PT]
robsonde (120)
1