LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Perl and Apache

[ILUG] Perl and Apache

Kevin Philp kevin at cybercolloids.net
Tue May 4 12:52:05 IST 2004


I want to run a few perl scripts outside of the usual /per/ or /cgi-bin/ 
directories and in the main web tree. Perl works fine from the /perl/ 
directory but I can't get it working in any other directories. I followed the 
instructions in the Apache manual and added

<Directory "/var/www/html/teerhatavaz">
 Options +ExecCGI
 AddHandler cgi-script cgi pl
 </Directory> 

But just got the source code thrown out. I also tried  

<Directory "/var/www/html/teerhatavaz">
 Options +ExecCGI                                         
 AddHandler perl-script cgi pl                            
 SetHandler perl-script                                   
</Directory>

But got the same. The files are called index.pl and I have the permissions set 
correctly. Perl -c index.pl runs OK from the directory. Apache (Apache 
version 2.0.44) Doesn't appear to be processing the scripts as perl. Any 
ideas welcome?

Kevin.











More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell