Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-13-2002, 09:06 PM   #1
Registered: Mar 2002
Distribution: Debian Testing & Kubuntu
Posts: 72

Rep: Reputation: 15
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?

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.


Old 06-13-2002, 09:28 PM   #2
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Okay, quick rundown: find httpd.conf and mess about a little with:
DocumentRoot, right now its pointed at:


Also, the cgi-bin can be referenced by default with:

and its going to look for that in:


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.


Old 06-14-2002, 06:09 AM   #3
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
Running perl in Apache paulm17781 Linux - Software 4 11-28-2003 12:57 PM
running perl scripts une mdk9.l and apache clefler Linux - Software 4 11-15-2003 12:35 PM
Have problem running .pl perl script in apache adrianmak Linux - Software 4 11-10-2003 09:31 AM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 06:15 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration