Lammersdorf, Lorenz wrote:
> good morning,
> 
> i'm not very familiar with suse, i'm more into debian. usually apache2 
> creates two directories called "mods-available" and "mods-enabled". depending 
> on your installation, you'll find there perl.load containing just one line of 
> code:
> 
> LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
> 
> if mod_perl.so is not installed, you're not able to run perl scripts via 
> apache. take a look at this: 
> http://www.novell.com/products/linuxpackages/suselinux/apache2-mod_perl.html 
> (it's an older version of opensuse, but it works for your installation too).
> 
> regards
> lorenz

Thanks again for your help.

I've looked through my apache2 under Suse, and I've found the following.

/etc/apache2/sysconfig.d/loadmodule.conf contains this line along with a 
whole bunch of other lines.

LoadModule perl_module                    /usr/lib64/apache2/mod_perl.so

and the module exists under the /usr/lib64/apache2/ directory so this 
should already be working then.

Could there be something wrong with my /etc/apache2/conf.d/mod_perl.conf ?

Below is the output of this file.


####################################################
<Directory "/srv/www/perl-lib">
     AllowOverride None
     Options None
     Order allow,deny
     Deny from all
</Directory>

<IfModule mod_perl.c>
     PerlRequire "/etc/apache2/mod_perl-startup.pl"

     ScriptAlias /perl/ "/srv/www/cgi-bin/"
     <Location /perl/>
         # mod_perl mode
         SetHandler perl-script
         PerlResponseHandler ModPerl::Registry
         PerlOptions +ParseHeaders
         Options +ExecCGI
     </Location>

     ScriptAlias /cgi-perl/ "/srv/www/cgi-bin/"
     <Location /cgi-perl>
         # perl cgi mode
         SetHandler  perl-script
         PerlResponseHandler ModPerl::PerlRun
         PerlOptions +ParseHeaders
         Options +ExecCGI
     </Location>

     # The /cgi-bin/ ScriptAlias is already set up in httpd.conf

</IfModule>

# vim: ft=apache
####################################################
httpd.conf references defualt-server.conf for more options, and in my 
default apache2/default-server.conf I have the following for ScriptAlias.

<Directory "/srv/www/cgi-bin">
  AllowOverride None
  Options +ExecCGI -Includes
  Order allow,deny
  Allow from all
</Directory>



Thanks again for all your help.

Regards.

Neil.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to