LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-02-2003, 06:54 AM   #1
eirbyte
LQ Newbie
 
Registered: May 2003
Location: Ireland
Distribution: Debian 4 etch
Posts: 16

Rep: Reputation: 0
Help me set up Perl


Hi I just got started with Linux redhat8 and so far so good I do some web design and now that I have an os with pearl how do I use it to on my local machine, Like if I want to set up a script for instance how do I test it without going on line an uploading it can I use the pearl on my box?.
Thanks All the best
 
Old 05-02-2003, 08:13 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Just test it in a directory that isn't accessible to the outside world or available to anyone else with the permissions settings. Setup like a staging type directory that is a mirror of your existing online directory.
 
Old 05-04-2003, 06:37 AM   #3
eirbyte
LQ Newbie
 
Registered: May 2003
Location: Ireland
Distribution: Debian 4 etch
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks but I still can't get it to work I made a directory called cgi-bin in my home directory and put a cgi script in to it but when I call it up in the browser it doesn't execute just shows up as a text file
 
Old 05-04-2003, 06:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
cgi scripts don't just "run", they are server-side so need to be accessed through a web server, over http, in your apache conf file you'll need to have the listed directory set as such...

Code:
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
 
Old 05-04-2003, 10:05 AM   #5
eirbyte
LQ Newbie
 
Registered: May 2003
Location: Ireland
Distribution: Debian 4 etch
Posts: 16

Original Poster
Rep: Reputation: 0
Ok back to original question how do I set it up. How do I find apache I have installed it but as to how to call it up and get it running on my stand alone PC (I don't have a network) Im lost ???
Thanks
 
Old 05-04-2003, 10:09 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Add the section that acid_kewpie suggested. (you may need to add it as an aliased directory too). Look at the config file and modify/uncomment the cgi-bin directive to match your system:
/etc/httpd/conf/httpd.conf

To start apahce (httpd):
service httpd start

To make apache start on boot:
chkconfig httpd on

To access your local site (on the server itself):
http://127.0.0.1/
 
Old 05-04-2003, 10:57 AM   #7
eirbyte
LQ Newbie
 
Registered: May 2003
Location: Ireland
Distribution: Debian 4 etch
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks

Thank a mil that works grate if you ever need any info on renewable energy just give me a call
All the best from the land of green
 
  


Reply



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
what should my Path for perl be set to gfallon Linux - Newbie 2 03-30-2005 02:55 PM
how to set passive mode off in perl!! mairot Programming 7 11-30-2004 10:02 AM
set content-type to 'text/html' in sendmail, using perl script brokenfeet Programming 3 08-05-2003 02:12 PM
The Best Method to install Set up a Unix System with PERL, PHP and Apache rhuser Linux - Software 1 03-01-2003 10:31 PM
can i set ~/public_html/perl as a perl directory for apache? doublefailure Linux - Networking 1 07-09-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration