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:
# 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/index.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]