I'm in the process of evaluating a Embperl conversion project and I'm having some issues.

1.3 is running mostly well for us, most of the site is running HTML::Embperl while most of the newer parts are running HTML::Embperl::Object, but we'd like to see if we can't get a performance boost out of a 2.0 conversion.   We're currently running Apache 1.3.29 with modperl 1.29 but I've tried everything below with Apache 1.3.33 as well.

Embperl-2.0rc2 compiles and tests fine, by switching HTML::Embperl references to Embperl (and the appropriate *::Object references as well) and commenting all my SetEnv EMBPERL* in http.conf  I was able to get a very simple "Hello World" style test.epl to run through apache/modperl.   I am unable to use any of the Embperl_* apache configuration directives though which is means I won't be able to get my application running.  The same hold true for b11 and rc1.

snippet from my apache config:

PerlModule Apache
PerlModule Embperl
PerlModule Embperl::Object

Embperl_AppName ChannelOnline
Embperl_UseEnv on
Embperl_Object_Base base.epl

Attempting a apache startup with -D EMBPERL_APDEBUG results in:

[begin processing of mod-perl.conf]
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: About to add mod_embperl.c as dynamic module [7674/0]
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: ApacheInitUnload [7674/0]
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: create_dir_config Embperl (0x843c42c) [7674/0]
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: create_server_config (0x8233f4c) [7674/0]
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: Set APPNAME (type=char *;STR) = ChannelOnline
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: Set UseEnv = 1
[Wed Mar  2 00:59:24 2005] [warn] EmbperlDebug: Set OBJECT_BASE (type=char *;STR) = base.epl
[end processing of mod-perl.conf]

Processing config directory: /home/maude/rhyde/apache/conf/virt_hosts
Processing config file: /home/maude/rhyde/apache/conf/virt_hosts/cop-devel-web.conf
/home/maude/rhyde/apache/bin/apachectl start: httpd started
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: ApacheInit [7674/0]
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: GetApacheConfig for server
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: get_appname ChannelOnline[7674/0]
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: Get APPNAME (type=char *) ChannelOnline
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: Get OBJECT_BASE (type=char *) base.epl
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: ApacheInitCleanup: mod_perl.c not dynamic loaded [7678/0]
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: create_server_config (0x822495c) [7678/0]
[Wed Mar  2 00:59:30 2005] [warn] EmbperlDebug: create_dir_config Embperl (0x823285c) [7678/0]

Syntax error on line 21 of /home/maude/rhyde/apache/conf/mod-perl.conf:
Invalid command 'Embperl_AppName', perhaps mis-spelled or defined by a module not included in the server configura

Whatever the order or number of the Embperl_* directives Apache will report "Invalid Command...".  From the log it seams pretty clear that Apache is registering the embperl_cmds[] as values from the config file are being set and read back.  I'm just not familiar enough with the C side of Embperl2 to really have an idea of what's going on here.  Does this look at all familiar to anyone?  Any suggestions?

Is Apache2 the preferred platform for Embperl2 these days?  Converting to Apache2/modperl2 would be a much larger project but I'd take a stab at it if it is indeed preferred.

Thank you for any help.




Richard "Trey" Hyde
Senior Software Engineer
CNET Channel
(949) 399 8722
[EMAIL PROTECTED]


Reply via email to