Dear Gavin (and fellow Embperl-ophiles,)

Well, .... I did wuz you'all said, but my installation of Apache,
mod_perl, Embperl, etc. doesn't find it agreeable.  Now I get the
following error from Apache when I try to start:

Shutting down httpd:                                       [  OK  ]
Starting httpd: Syntax error on line 260 of /etc/httpd/conf/httpd.conf:
Invalid command 'EMBPERL_OBJECT_BASE', perhaps mis-spelled or defined by
a module not included in the server configuration

so ....  presumably the error is elsewhere.  Here is more of my
httpd.conf file.  What's obviously wrong that I can't spot but one of you
all will immediately see! :-)

#### ModPerl Configuration ####
# Add the Mod Perl module
LoadModule perl_module modules/mod_perl.so 

PerlModule Apache2

# PerlModule Apache::compat

PerlModule ModPerl::Registry

# Workspace for Perl development
Alias /perl/ /home/httpd/perl/
  <Location /perl/>     
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
  </Location>   

###  EmbPerl declarations
PerlModule Embperl

AddType text/html .epl

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

        
# Setup EmbPerl handler for Object oriented example for main page.
<Directory "/home/httpd/htdocs/prototype">
        <FilesMatch ".*\.epl\.html$">  
                SetHandler perl-script 
                PerlHandler Embperl::Object 
            EMBPERL_OBJECT_BASE CanebasTemplate.epl
                Options ExecCGI 
        </FilesMatch>  
        <FilesMatch ".*\.epl$">  
                Order allow,deny 
                Deny From all 
        </FilesMatch>  
</Directory>


Let's hear it for multiple eyes!

Peace, Edouard :-)

Gavin Carr <[EMAIL PROTECTED]> wrote at Tue, 18 Mar 2003 08:02:48 +1100

>Hi Edouard,
>
>On Mon, Mar 17, 2003 at 10:11:28AM -0800, Edouard Lagache wrote:
>> A minor glitch that I couldn't find in listserv archives though.  Just
>> setting the EMBPERL_OBJECT_BASE environmental variable in the Apache
>> configuration file seems to have no effect.  If I instead just use
>> _base.epl as my base object everything is happy as a clam, but it would
>> be nice to choose my own file name.  Is this just a bug on the "low
>> priority fix it" list or is the example in the Embperl documentation
>>obsolete?
>
>Embperl2 uses full-fledged Apache directives rather than environment
>variables,
>so just use 'EMBPERL_OBJECT_BASE template.epl', without the PerlSetEnv.
>
>Cheers,
>Gavin
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to