Apache Server configuration support - Ubuntu / Apache : how to check status mod_perl and settings

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > Ubuntu / Apache : how to check status mod_perl and settings





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Ubuntu / Apache : how to check status mod_perl and settings
JM

2007-01-25, 7:27 pm

I have a Ubuntu Dapper Drake webserver.
I verified that PERL is installed.
But I need to install some perl-scripts for a website.
When I put it in a cgi-bin directory the script wasn't executed but the
browser wanted to download the script. The directory and script have the
necessary permissions : 755. On a debian server I found several cg-bin
directories I tried to put the script everywhere but either the browser
wanted to downoad it or it wasn't found.

1. How do I check if mod_perl is installed ?
2. How do I install mod_perl ?
3. What about cgi-bin directory ? One per server or one per website ?
How to configure ?
4. Is there something else that I should do to use PERL scripts ?

Thanx,

JM
Davide Bianchi

2007-01-26, 7:23 am

On 2007-01-25, JM <reply@group.svp> wrote:
> 1. How do I check if mod_perl is installed ?


Check the configuration file if mod_perl is loaded at runtime.

> 2. How do I install mod_perl ?


Download the package for your distribution and follow the instructions

> 3. What about cgi-bin directory ?


What about it?

> One per server or one per website ?


As you prefer, I prefer to keep things separated for VHost, so I have a
cgi-bin dir for each vhost and eventually, some 'special' application with
his own directory with cgi-bin functionality.

> How to configure ?


ScriptAlias /where-you-want-it/ /where/is/the/directory/
<Directory "/where/is/the/directory">
Options ExecCGI
...other directives as required...
</Directory>

In the VHost or in the main configuration.

> 4. Is there something else that I should do to use PERL scripts ?


Be sure that the script begin with #!/where/is/your/perl and that
running the script from the command line works.

Davide

--
Breaking Windows isn't just for kids anymore...
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com