Antoine wrote:
Hi,
I just can't seem to figure out how to get perl working on apache2.
There don't seem to be any decent gentoo-specific docs, and it seems
like the names of config files are changing constantly :-(.
Anyway, I have installed ~x86 apache2 and mod_perl. What do I do now?
I have tried to test things but when I put the following in httpd.conf
apache no longer starts.
Alias /perl/ /home/httpd/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader
On PerlSetupEnv On </Location>
tux ~ # /etc/init.d/apache2 restart
* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 1104 of /etc/apache2/httpd.conf:
Invalid command 'PerlHandler', perhaps mis-spelled or defined by a
module not included in the server configuration
Can someone point me in the right direction? It seems a lot more
complicated than simply adding -D PHP4...
Cheers
Antoine
I have installed mod_perl with no diffuculties. All I had to do after
installing was to add update /etc/conf.d/apache2 and add -D PERL to line
APACHE2_OPTS. I restarted apache and perl was working.
--
gentoo-user@gentoo.org mailing list