Running Perl CGI's on your own box with Apache
One of the biggest draws about Linux is that i can run perl CGI programs and debg them wthout being online. I have apache installed and running (along with perl and php items for it) but am unfamiliar with how to use it. I had a few general questions i was hoping some kind soul would help out with:
1) how exactly do you reference the server running on your own computer? like this? http://192.168.0.2/home/myspace/somefile.html 2) when i try the above, i get the FORBIDDEN error page, so i know the server is running, but am not sure how to configure it to let me in. 3) is there a HOWTO that i missed on this very topic. i didn't see anything much relevant, but would be happy to read anything i could find on it. thanks, leiavoia |
Okay, quick rundown: find httpd.conf and mess about a little with:
DocumentRoot, right now its pointed at: /var/www/html/index.html Also, the cgi-bin can be referenced by default with: http://192.168.0.2/cgi-bin/nameofperlscript.pl and its going to look for that in: /var/www/cgi-bin Although you can change that in httpd.conf so that the cgi-bin could be named perlgoop and have it pointed at the directory: /home/bob/perlslop httpd.conf is well documented and pretty hard to break, good luck. Of course, in order for changes to take effect, you'll have to call a hard restart with: /etc/rc.d/init.d/httpd restart. This was all assuming you are using Mandy like it says in your profile. Cheers, Finegan |
if u run `http://your.servername/manual/' uŽll see the apache info pages. there uŽll find a lot of info about cgi. the cgi-bin is where u set ScriptAlias in httpd.conf.
good luck, jens |
All times are GMT -5. The time now is 05:06 PM. |