On 12/13/05, Corey <[EMAIL PROTECTED]> wrote: > Hi, > I am setting up a testing web server on an Averatec 3270 running > Ubuntu 5.04and Apache 2. The goal is to use it to test perl scripts > (just learning) as > well as php and mysql. So far I have installed apache, php, mod_perl and > mysql through apt-get. The testphp.php script works fine as well as mysql > but I don't know how to configure apache to run perl scripts. I don't have > a cgi bin, or if one is there I don't know where it is. Could anyone > instruct me what I would have to do in apache2.conf to execute .pl scripts > and where i need to put a cgi directory? http://localhost is directed to > /var/www/. > corey
I don't have mod-perl installed on my Ubuntu system, but... Debian defines a structure for the configuration of apache2 which allows for easy control of both apache modules and sites (e.g. virtual servers). Being a debian based distro, it's likely that the mod-perl package will create the configuration files /etc/apache2/mods-available So look for perl.conf and/or perl.load in these directories. There are commands a2enmod and a2dismod which create and destroy links to these files in the /etc/apache2/mods-enabled directory where the main apache2 configuratin file directs httpd to look for them when httpd is (re)started. Similarly there are /etc/apache2/sites-available, /etc/apache2/sites-enabled directories and a2ensite and a2dissite commands to control configurations of virtual host configurations. On a debian-based system using apache2 it's really advisable to align your configuratin with this structure. For more info see /etc/apache2/README -- Rick DeNatale Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/ -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
