> I am just starting out with embperl. I installed it on a Redhat 5.2 server
> running Linux 2.0.26 and perl 5.004_04 and Apache 1.3.6. Tests from the
> examples at perl.apache.org (if.htm, loop.htm, etc.) work fine on this
> machine with this virtual host. But I can not get an example on a
> template shown at http://www.perl.com/pub/2001/03/embperl.html to work.
>
> Mod_perl is not installed, so I must run embperl as a cgi script. I added
> the following lines to my Apache httpd.conf file:
>
The configuration below, is for mod_perl, not CGI. If you really want to use
it with CGI, you have to replace PerlSetEnv with SetEnv (because PerlSetEnv
comes form mod_perl) and use the append script instead of embpcgi.pl,
because embpcgi.pl only handles normal request, while epocgi.pl handles
EmbperlObject request. The script will be part of the next release
Gerald
> # EMBPERL STUFF
> PerlSetEnv EMBPERL_ESCMODE 0
> PerlSetEnv EMBPERL_OPTIONS 16
> PerlSetEnv EMBPERL_MAILHOST mail.mydomain.com
> PerlSetEnv EMBPERL_OBJECT_BASE base.epl
> PerlSetEnv EMBPERL_OBJECT_FALLBACK notfound.html
> PerlSetEnv EMBPERL_DEBUG 0
> #Set EmbPerl handler for Curriculum directory
> <Directory
> "/webServer/virtualDW/cannonschool.org/htdocs/Curriculum_and_Admissions/">
> <FilesMatch ".*\.html$">
> SetHandler perl-script
> PerlHandler HTML::EmbperlObject
> Options ExecCGI
> </FilesMatch>
> <FilesMatch ".*\.epl$">
> Order allow,deny
> Deny From all
> </FilesMatch>
> </Directory>
> # END EMBPERL STUFF
>
> In the Curriculum_and_Admissions directory, I created a base.epl file like
> so:
>
> <HTML>
> <HEAD>
> <TITLE>Some title</TITLE>
> </HEAD>
> <BODY>
> Cannon School
> <P>
> [- Execute ('*') -]
> </BODY>
> </HTML>
>
> and an index.html file that just says:
>
> Hello, Gary.
>
> Well, all I get is Hello, Gary. I don't get anything else, and no title
> when I do an http on:
>
>
http://www.cannonschool.org/cgi-bin/embpcgi.pl/Curriculum_and_Admissions/ind
ex.html
>
> I copied this example right from the perl.com web page, so I am a little
> confused as to what I am doing wrong. Any help appreciated. Thanks in
> advance.
>
> Gary
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
epocgi.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]