LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-13-2002, 10:06 PM   #1
leiavoia
Member
 
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?
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
 
Old 06-13-2002, 10:28 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
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
 
Old 06-14-2002, 07:09 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,441

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


Reply


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 06:37 PM
Running perl in Apache paulm17781 Linux - Software 4 11-28-2003 01:57 PM
running perl scripts une mdk9.l and apache clefler Linux - Software 4 11-15-2003 01:35 PM
Have problem running .pl perl script in apache adrianmak Linux - Software 4 11-10-2003 10:31 AM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM


All times are GMT -5. The time now is 08:24 PM.

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