Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 25053 invoked from network); 2 Mar 2005 01:15:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 01:15:59 -0000 Received: (qmail 9104 invoked by uid 500); 2 Mar 2005 01:15:59 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 8874 invoked by uid 500); 2 Mar 2005 01:15:58 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 8857 invoked by uid 99); 2 Mar 2005 01:15:58 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_RCVD_HELO,HTML_10_20,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from cn-sfo1-pix-natout.cnet.com (HELO cn-sfo1-mail-relay1.cnet.cnwk) (216.239.124.38) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 17:15:56 -0800 Received: from hyde-irvine ([10.16.137.22]) by cn-sfo1-mail-relay1.cnet.cnwk (8.12.10/8.12.10) with ESMTP id j221Fs3k006150 for ; Tue, 1 Mar 2005 17:15:54 -0800 (PST) X-Spam-Filter: check_local@cn-sfo1-mail-relay1.cnet.cnwk by digitalanswers.org Subject: Embperl 1.3 to 2.0 conversion issues, configuring Apache From: Trey Hyde To: embperl@perl.apache.org Content-Type: multipart/alternative; boundary="=-GLQHVyVyjUsDzFg/aW8X" Organization: CNET Networks Date: Tue, 01 Mar 2005 17:15:54 -0800 Message-Id: <1109726154.30180.37.camel@hyde> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-1) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-GLQHVyVyjUsDzFg/aW8X Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 Richard.Hyde@cnet.com --=-GLQHVyVyjUsDzFg/aW8X Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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
Richard.Hyde@cnet.com


--=-GLQHVyVyjUsDzFg/aW8X--