?
Solved

how to set .pl & .cgi execute permission for virtual host

Posted on 2003-03-13
5
Medium Priority
?
307 Views
Last Modified: 2013-11-18
I have configured virtual host www.rsc.com in apache 1.3.x but when I run the .pl file it says execution permission denied.... I have configure .pl & .cgi to run from any directory using addhandler & also in windows host file, i'm able to see htm files in browser of this virtual host

If i disable virtual server then with localhost call it the .pl executes in any directly perfectly

What setting I have to give to enable .pl execution for vitual host & is there any gui application available which makes configuration task simple!!!

Rajesh
0
Comment
Question by:rajeshvb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 15

Expert Comment

by:samri
ID: 8134496
Hi Rajesh,

You must make sure that the perl program is executable - I think, set eXecute permission needs to be set.  Personally, I would do "chmod +x file.pl" or "chmod 755 file.pl"

You could further test by running the code in shell prompt - try doing "perl file.pl", and see if it runs ok.

good luck.
0
 

Author Comment

by:rajeshvb
ID: 8134563
I forgot to specify the OS is windows 98 so chmod & shell is not applicable

and this perl file is tested in non-virtual environment & it works i think there is some setting in apache which needs to be done for virtual host so that execute permission are give this this site also, so what is that setting?

Rajesh
0
 
LVL 15

Accepted Solution

by:
samri earned 200 total points
ID: 8134622
Hi Rajesh,

You could add AddHandler to the Vhost, and include ExecCGI in the Directory Directive for the respective directory,


<VirtualHost ..>
  DocumentRoot  c:/wherever/
  <Directory "C:/Wherever/">
    Option +ExecCGI
  </Directory>
  AddHandler cgi-script .cgi .pl
</Virtual Host>
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question