EMBPERL_SESSION_ARGS problem
The following directives work fine with Embperl 1.2.0 PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=dev2-sparc UserName=www Password=secret" PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=localhost UserName=www Password=secret" But these one cause a permanent fatal error. PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=dev2-sparc.dev.fth.net UserName=www Password=secret" PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database=www_sessions;host=193.252.66.1 UserName=www Password=secret" [6431]ERR: 24: Line 13: Error in Perl code: DBI-connect failed: Access denied for user: 'www@dev2-sparc' (Using password: YES) at /usr/local/lib/perl5/site_perl/5.005/Apache/Session/DBIStore.pm line 117 Apache/1.3.9 (Unix) mod_perl/1.21 HTML::Embperl 1.2.0 [Thu Jan 20 12:17:42 2000] HTTP/1.1 500 Internal Server Error Date: Thu, 20 Jan 2000 11:17:41 GMT Server: Apache/1.3.9 (Unix) mod_perl/1.21 Connection: close Note that the two parameters differ only by the target hostname... and that the sql server is local. Could this be a bug in the parameter parser ? Regards. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Jean-Philippe FAUVELLE [EMAIL PROTECTED] [EMAIL PROTECTED] Responsable du Pole de Developpement Unix/Web Departement Developpement Applicatif France Telecom Hosting 40 rue Gabriel Crie, 92245 Malakoff Cedex, France [http://www.fth.net/] [+33 (0) 1 46 12 67 89] =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Embperl and fields delimiter
Actually, the sequence used as delimiter for CGI fields is "\t". I think this is not the best choice, cause having a tabulation into a field content is always possible (cut paste, file upload...). Why not allowing the user to choose the more appropriate delimiter, through a ENV var ? # delimiter = \0 PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x00 # delimiter = HT PerlSetEnv EMBPERL_FIELDS_DELIMITER 0x09 # delimiter = none : use array ref instead for multiple values PerlSetEnv EMBPERL_FIELDS_DELIMITER ARRAY_REF Of course, this delimiter would default to "\t", for backward compatibility. Is this relevant or not ? ______ Jean-Philippe FAUVELLE [EMAIL PROTECTED] [EMAIL PROTECTED] Responsable du Pole de Developpement Unix/Web Departement Developpement Applicatif France Telecom Hosting 40 rue Gabriel Crie, 92245 Malakoff Cedex, France [http://www.fth.net/] [+33 (0) 1 46 12 67 89]
Embperl, Safe and namespaces
I tried to configure Embperl with Safe, using the following directive. PerlSetEnv EMBPERL_OPTIONS 16404 (optSafeNamespace set) Namespaces are now protected, but all modules used in a page are no more visible... HTML HEADTITLEtest/TITLE/HEAD BODY HR [- use DBI; DBI-connect(...) or print $DBI::errstr -] /BODY /HTML - Error in Perl code: Can't locate object method "connect" via package "DBI" ... Does anybody have an idea to solve this problem ? Regards. ______ Jean-Philippe FAUVELLE [EMAIL PROTECTED] Responsable du PĂ´le de DĂ©veloppement Unix/Web Departement Developpement Applicatif France Telecom Hosting 40 rue Gabriel Crie, 92245 Malakoff Cedex, France [http://www.fth.net/] [+33 (0) 1 46 12 67 89]
Installation problem whith Embperl
I tried to install HTML::Embperl with Apache/mod_perl on a Sparc/Solaris server, but 'make test' failed with an error on the module Apache/Session/Win32.pm. Did someone already encounter/solve this kind of problem ? Regards. __ Jean-Philippe FAUVELLE [EMAIL PROTECTED] France Telecom Hosting 40 rue Gabriel Crie, 92245 Malakoff Cedex, France [http://www.fth.net/] [+33 (0) 1 46 12 67 89] 1) My config is: OS = Solaris apache V1.3.9 mod_perl V1.21 Apache::Session V1.03 Perl V5.00503 Embperl V1.2b8 2) Apache and mod_perl works fine and were installed at the same time, with the following commands: cd /usr/local/apache/build lwp-download http://www.apache.org/dist/apache_1.3.9.tar.gz lwp-download http://perl.apache.org/dist/mod_perl-1.21.tar.gz tar zvxf apache_1.3.9.tar.gz tar zvxf mod_perl-1.21.tar.gz cd mod_perl-1.21 perl Makefile.PL APACHE_SRC=../apache_1.3.9/src \ DO_HTTPD=1 USE_APACI=1 PERL_MARK_WHERE=1 EVERYTHING=1 \ PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1 # pour Apache::DBI make make test make install cd ../apache_1.3.9 make install all ran ok 3) Here is the output produced when building Embperl: cd opt/Homes/cpan/HTML-Embperl-1.2b8 perl Makefile.PL Build with support for Apache mod_perl?(y/n) [y] Searching for Apache sources... Look at .. Look at ../src Look at ./src Apache source not found, enter path name or q to quit [] /usr/local/apache/build/apache_1.3.9 Searching for Apache sources... Look at /usr/local/apache/build/apache_1.3.9 Look at /usr/local/apache/build/apache_1.3.9/src Use /usr/local/apache/build/apache_1.3.9/src as Apache source(y/n) [y] Will use /opt/FSFutils/apache/build/apache_1.3.9/src for Apache Headers Apache Version Server version: Apache/1.3.9 (Unix) Test start /opt/FSFutils/apache/build/apache_1.3.9/src/httpd Test httpd will run as user nobody and group other Test httpd will listen on port 8529 Found mod_perl Version 1.21 Found LWP::UserAgent Version 1.68 Found HTML::HeadParser Version 2.10 Found Apache::Session Version 1.03 Found CGI Version 2.56 Checking if your kit is complete... Warning: the following files are missing in your kit: EmbperlD.pod FeaturesD.pod IntroD.pod Please inform the author. Writing Makefile for HTML::Embperl make ... all ran ok ... make test PERL_DL_NONLAZY=0 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/su n4-solaris -I/usr/local/lib/perl5/5.00503 test.pl loading...ok Testing offline mode... ascii... ok pure.htm... ok plain.htm... ok ... cut (all ok) opmask/opmask.htm... ok opmask/opmasktrap.htm... ok Testing Execute function... div.htm from file... ok div.htm from memory...ok div.htm to memory... ok div.htm from/to memory... ok error.htm to memory...ok Use of uninitialized value at (eval 1218) line 1. Starting httpd... [Fri Oct 8 17:09:47 1999] [error] Can't locate Apache/Session/Win32.pm in @INC (@INC contains: blib/arch blib/lib . /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 /opt/Homes/cpan/HTML-Embperl-1.2b8/test/ /opt/Homes/cpan/HTML-Embperl-1.2b8/test/lib/perl) at (eval 3) line 1. BEGIN failed--compilation aborted at (eval 3) line 1. BEGIN failed--compilation aborted at /opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/startup.pl line 10. Syntax error on line 41 of /opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/httpd.conf: Can't locate Apache/Session/Win32.pm in @INC (@INC contains: blib/arch blib/lib . /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 /opt/Homes/cpan/HTML-Embperl-1.2b8/test/ /opt/Homes/cpan/HTML-Embperl-1.2b8/test/lib/perl) at (eval 3) line 1. BEGIN failed--compilation aborted at (eval 3) line 1. BEGIN failed--compilation aborted at /opt/Homes/cpan/HTML-Embperl-1.2b8/test/conf/startup.pl line 10.