Re: How to use libhtml-embperl-perl as cgi
Peter S Galbraith wrote:
>
> [also sent to prior Debian maintainer in case he can answer in 30 seconds!]
>
> I have installed the libhtml-embperl-perl package, and I'm trying
> to get some perl commands within [+ brackets +] in html files to
> be processed (first as cgi, then perhaps using mod-perl).
>
> After simply installing the package, the embperl brackets get
> passed on as text as output in the HTML, so the preprocessor
> isn't invoked by default.
>
> The HTML::Embperl man page says to copy embpcgi.pl to the
> cgi-bin directory. I've done this. Then it says:
>
> If you are running the Apache httpd, you can also define
> embpcgi.pl as a handler for a specific file extention or
> directory.
>
> Example of Apache srm.conf:
>
> <Directory /path/to/your/html/docs>
> Action text/html /cgi-bin/embperl/embpcgi.pl
> </Directory>
>
> So I tried variants of this but when I restart apache I get the
> error:
>
> Invalid command 'Action', perhaps mis-spelled or defined by a
> module not included in the server configuration
>
you need to have the apache module "mod_actions" compiled-in and enabled
for the directive "Action" to be available. mod_actions belongs to the
base modules and is compiled-in by default -- but this doesn't mean that
it cannot be disabled ;-)
(sorry, I don't know about the debian package).
Do a
httpd -l
for a list of compiled-in modules (among these you should see
"mod_actions.c")
or
httpd -L
for a list of available directives (here you should see "Action
(mod_actions.c)").
See the apache documentation for details on how to enable modules...
BTW: as far as I know, the debian embperl-package isn't quite the most
recent version, so you might consider building your own newer one
(1.3b5) -- if you can live with a non-debian package on your system)
Also, just in case you didn't know, there is an embperl mailing list
(embperl@perl.apache.org), for the kind of problems where you need real
experts ;-)
Good luck,
Erdmut
--
Erdmut Pfeifer
science+computing gmbh
-- Bugs come in through open windows. Keep Windows shut! --
Reply to: