You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Mehler <da...@gmail.com> on 2018/02/27 15:37:55 UTC

[users@httpd] apache 2.4 and mod_perl2

Hello,

I'm trying to get apache 2.4 and mod_perl2 in my case 2.0.10 going on
a FreeBSD 11.1 system.

I've got this in a virtual host section:

#
# mod perl per-directory configuration
#

# Required modules: dir_module, perl_module
<IfModule dir_module>
        <IfModule perl_module>
                DirectoryIndex index.pl
        </IfModule>
</IfModule>

Alias "/perlweb/" "/usr/local/www/perlweb/"
<Location "/perlweb/">
      AddHandler perl-script .pl
      AddHandler perl-script .cgi
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
Require all granted
</Location>



I'm getting a syntax error on the PerlResponseHandler line invalid command.

Anyone got any ideas how I can fix?

Thanks.
Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4 and mod_perl2

Posted by Vincent Veyron <vv...@wanadoo.fr>.
On Tue, 27 Feb 2018 10:37:55 -0500
David Mehler <da...@gmail.com> wrote:

I'm late on this, but just in case :

> 
> I'm trying to get apache 2.4 and mod_perl2 in my case 2.0.10 going on
> a FreeBSD 11.1 system.
> 
> I've got this in a virtual host section:
> 
> Alias "/perlweb/" "/usr/local/www/perlweb/"
> <Location "/perlweb/">
>       AddHandler perl-script .pl
>       AddHandler perl-script .cgi
>       PerlResponseHandler ModPerl::Registry
>       PerlOptions +ParseHeaders
>       Options +ExecCGI
> Require all granted
> </Location>
> 
> 
> 
> I'm getting a syntax error on the PerlResponseHandler line invalid command.
> 

http://perl.apache.org/docs/2.0/user/intro/start_fast.html#Registry_Scripts

Note the line that says 'SetHandler perl-script' vs your 'AddHandler perl-script .pl'



> Anyone got any ideas how I can fix?
> 

The mod_perl list certainly has one; you should try there.

http://perl.apache.org/maillist/modperl.html

-- 
					Bien à vous, Vincent Veyron 

https://compta.libremen.com
Logiciel libre de comptabilité générale en partie double

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4 and mod_perl2

Posted by mlrx <ml...@18informatique.com>.
Le 28/02/2018 à 18:33, David Mehler a écrit :
> Hello,
> 
> Yes I did. I am still getting the error now about the invalid
> PerlModule line I just added.
> 
> Thanks.
> Dave.

Hello,

Had you try to use a script in your directory with
"PerlResponseHandler perlweb::scriptname"?
Is it ok with loading all modules/files you need?
Is there some other errors in logs?
Do you use the maximum verbosity?
Had you temporaly remove all restriction directives in
apache/vhost conf?

Regards,
-- 
benoist

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4 and mod_perl2

Posted by David Mehler <da...@gmail.com>.
Hello,

Yes I did. I am still getting the error now about the invalid
PerlModule line I just added.

Thanks.
Dave.


On 2/28/18, mlrx <ml...@18informatique.com> wrote:
> Le 27/02/2018 à 16:37, David Mehler a écrit :
>> Hello,
>>
>> I'm trying to get apache 2.4 and mod_perl2 in my case 2.0.10 going on
>> a FreeBSD 11.1 system.
>>
>> I've got this in a virtual host section:
>>
>> #
>> # mod perl per-directory configuration
>> #
>>
>> # Required modules: dir_module, perl_module
>> <IfModule dir_module>
>>          <IfModule perl_module>
>>                  DirectoryIndex index.pl
>>          </IfModule>
>> </IfModule>
>>
>> Alias "/perlweb/" "/usr/local/www/perlweb/"
>> <Location "/perlweb/">
>>        Handeler perl-script .pl
>>        AddHandler perl-script .cgi
>>        PerlResponseHandler ModPerl::Registry
>>        PerlOptions +ParseHeaders
>>        Options +ExecCGI
>> Require all granted
>> </Location>
>>
>>
>>
>> I'm getting a syntax error on the PerlResponseHandler line invalid
>> command.
>>
>> Anyone got any ideas how I can fix?
>>
>> Thanks.
>> Dave.
>
>
> Hello,
>
> Do you asked to load it first ?
> PerlModule ModPerl::Registry
>
> Regards,
> --
> benoist
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] apache 2.4 and mod_perl2

Posted by mlrx <ml...@18informatique.com>.
Le 27/02/2018 à 16:37, David Mehler a écrit :
> Hello,
> 
> I'm trying to get apache 2.4 and mod_perl2 in my case 2.0.10 going on
> a FreeBSD 11.1 system.
> 
> I've got this in a virtual host section:
> 
> #
> # mod perl per-directory configuration
> #
> 
> # Required modules: dir_module, perl_module
> <IfModule dir_module>
>          <IfModule perl_module>
>                  DirectoryIndex index.pl
>          </IfModule>
> </IfModule>
> 
> Alias "/perlweb/" "/usr/local/www/perlweb/"
> <Location "/perlweb/">
>        Handeler perl-script .pl
>        AddHandler perl-script .cgi
>        PerlResponseHandler ModPerl::Registry
>        PerlOptions +ParseHeaders
>        Options +ExecCGI
> Require all granted
> </Location>
> 
> 
> 
> I'm getting a syntax error on the PerlResponseHandler line invalid command.
> 
> Anyone got any ideas how I can fix?
> 
> Thanks.
> Dave.


Hello,

Do you asked to load it first ?
PerlModule ModPerl::Registry

Regards,
-- 
benoist

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org