Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-02-2006, 07:24 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 9

Rep: Reputation: 0
Executing perl scripts in apache

In my server, I have to put perl scripts in three folders public_html/perl, public_html/admin, public_html/admin/perl. And the perl script in these directories should be executed by apache irrespective of it's file extension.

I added ScriptAlias line in virtual host in httpd.conf. But its not solved the problem. There is some more that has to be added. I think its <location> </location> tag. What all things should i add in httpd.conf.

Please help.
Old 10-04-2006, 04:00 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,477

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
For each one of these directories you should use a .htaccess containing:
Options +ExecCGI
SetHandler cgi-script
And of course you must least have
AllowOverride Options
in your httpd.conf either globally or per directory.
Old 10-04-2006, 07:35 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 10

Rep: Reputation: 0
how to I access pages from a remote client?

I have apache server running on a linux machine fedora core 5 but i'm not able to access the pages on a remote client. it only works for the local system

how do i solve this?


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I run a perl and cgi scripts in my apache.?. ethnicme Programming 6 07-21-2006 04:02 AM
have apache deliver the output of perl cgi scripts immidiately fibbi Linux - Software 2 07-13-2004 12:17 PM
Executing scripts upon login jungatheart Linux - Newbie 3 04-19-2004 06:06 PM
running perl scripts une mdk9.l and apache clefler Linux - Software 4 11-15-2003 12:35 PM
Executing shell scripts justinv Linux - General 6 01-26-2003 07:57 AM

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

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