I am running apache2 (as installed through a fresh Mandrake 9.1 distribution), and am having a problem I am unsire how to solve.
I am making a website using the WebGUI CMS package, which uses a file called "index.pl" as its entrypoint. When I open this page, rather than have that .pl file executed, I am shown it as if it is text.
Quote:
# rpm -qa | grep apache
apache2-2.0.44-11mdk
apache2-common-2.0.44-11mdk
apache2-modules-2.0.44-11mdk
apache2-mod_perl-2.0.44_1.99_08-3mdk
apache2-mod_php-2.0.44_4.3.1-2mdk
apache2-mod_ssl-2.0.44-11mdk
apache2-mod_suexec-2.0.44-2mdk
apache-conf-2.0.44-11mdk
|
The install directions for WebGUI says I should add the following to my vhost definition:
Quote:
<Files ~ "\.(pl)$">
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Files>
|
However, as seen here, I'm not getting much luck.
Quote:
# /etc/rc.d/init.d/httpd start
Starting httpd2: Syntax error on line 55 of /etc/httpd/2.0/conf/vhosts/Vhosts.conf:
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration
|
My complete vhost entry is:
Quote:
NameVirtualHost 209.187.140.238
<VirtualHost 209.187.140.238>
ServerName www.acmebackflow.com
ServerAlias acmebackflow.com
ServerPath /var/www
DocumentRoot /var/www/AcmeBackflow
ErrorLog /var/log/httpd/acme-error-log
<Files ~ "\.(pl)$">
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Files>
</VirtualHost>
|
Can anyone try to get me pointed in the right direction with this? The closest I've come... I -think- the <Files> section there is perhaps valid for Apache 1.3 but not for 2.0, however I am unsire what to change. Configuring Apache definitely is not my strong point.