Hi,

I've got an existing Embperl config that works perfectly well, but it's a
little complicated.

I wanted to try doing a new clean setup. I'm running on Alma Linux 9. I
installed httpd with dnf, then mod_perl and Embperl with cpanm. While at
it, I noticed Embperl needs to be installed in interactive mode or the
install hangs.

I put this config in /etc/httpd/conf/httpd.conf:

LoadModule perl_module modules/mod_perl.so
LoadModule embperl_module /usr/local/lib64/perl5/5.32/au
to/Embperl/Embperl.so

PerlModule Embperl
AddType text/html .epl

<Files *.epl>
        SetHandler perl-script
        PerlHandler Embperl
        Options ExecCGI
</Files>

Based on the example here:
https://embperl.org/pod/doc/Config.-page-1-.htm#sect_1

I created a small epl file:

<html>
        <head>
                <title>test</title>
        </head>

        <body>
                [+ "test" +] [+ 2 + 2 +]
        </body>
</html>

in /var/www/html/ep/test.epl and tried to serve it.

For a while it seemed to work, but now all I get is: [725]ERR:  24:  Error
in Perl code: Can't call method &quot;app&quot; on an undefined value at
/usr/local/lib64/perl5/5.32/Embperl/Util.pm line 109.
I considered the theory I need an App Name and put:

Embperl_Appname moo

in httpd.conf, but it didn't seem to make a difference.

I feel like I must be missing something obvious here, please help.


Michael Stevens
Senior Developer ▪︎ Dianomi
 +44 207 802 5530 <+44%20207%20802%205530>
 michael.stev...@dianomi.com
 84 Eccleston Square London, SW1V 1PX
 www.dianomi.com

-- 
This e-mail is for the sole use of the intended recipient and contains 
information that may be privileged and/or confidential. If you are not an 
intended recipient, please notify the sender by return e-mail and delete 
this e-mail and any attachments. Certain required legal entity disclosures 
can be accessed on our website.

Reply via email to