Hi, > > I have been unsuccessful in getting Embperl working in my > environment (see the bottom of this message). I can't seem to find > a mod_perl 2 'sample' configuration file on the Embperl site > or in the distribution ( soulds like a good thing to have in the > eg/ directory ). >
Does make test work correctly for you ? If yes, could you try to add a use Embperl ; at the end of your startup script and remove the PerlModule EMbperl form your httpd.conf? Gerald > I get the following message when trying to access my web page: > > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to > complete your request. > > Please contact the server administrator, [EMAIL PROTECTED] and > inform them > of the time the error occurred, and anything you might have done that > may > have caused the error. > > [19409]ERR: 24: Error in Perl code: (in cleanup) Can't call method > "app" on an > undefined value > at > /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3/i686-linux-thread-multi/Em bperl/Util.pm > line 107. > > Embperl/2.0b11 Apache/2.0.50-dev (Unix) mod_perl/1.99_14-dev > Perl/v5.8.3 > mod_ssl/2.0.50-dev OpenSSL/0.9.7d DAV/2 [Tue Mar 23 01:30:18 2004] > > The log shows: > > [Tue Mar 23 01:30:18 2004] [error] [19409]ERR: 24: Error in Perl > code: \t(in > cleanup) Can't call method "app" on an undefined value > at > /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3/i686-linux-thread-multi/Em bperl/Util.pm > line 107. > > > I have my httpd.conf setup as follows: > > ### Section 3: mod_perl and embperl > > #-------------------mod_perl--------------------------------- > LoadModule perl_module /home/test/usr/apache2/lib/apache/mod_perl.so > LoadModule apreq_module /home/test/usr/apache2/lib/apache/mod_apreq.so > LoadModule cgid_module /home/test/usr/apache2/lib/apache/mod_cgid.so > LoadModule embperl_module > "/home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3/i686-linux-thread-multi/a uto/Embperl/Embperl.so" > > PerlSetEnv MOD_PERL_INC "/home/test/httpd/perl" > PerlRequire "/home/test/httpd/conf/ep-startup.pl" > > PerlModule Apache::Reload > PerlInitHandler Apache::Reload > > #-------------------embperl---------------------------------- > > PerlModule Embperl > > AddType text/html .epl > > <Files *.epl> > SetHandler perl-script > PerlResponseHandler Embperl > Options ExecCGI > </files> > > ### Section 4: Virtual Hosts > > Listen 12984 > NameVirtualHost localhost:12984 > > # for general testing - default - on localhost > > <VirtualHost localhost:12984> > EMBPERL_APPNAME my_embperl_app > EMBPERL_OBJECT_BASE base.epl > ServerName bctest.with.embperl.beaucox.com > DocumentRoot "/home/test/httpd/htdocs/bctest_with_embperl" > SetHandler perl-script > PerlResponseHandler Embperl::Object > Options ExecCGI > </VirtualHost> > > And my startup script is: > > ################################################### > # mod_perl startup script > # adapded by Beau E. Cox > # December 4, 2002 > # > # file:startup.pl > ################################################### > > use Apache2 (); > use Apache::compat (); > > use lib ( $ENV{MOD_PERL_INC} ); > > use CGI (); > > use ModPerl::Util (); #for CORE::GLOBAL::exit > > use Apache::RequestRec (); > use Apache::RequestIO (); > use Apache::RequestUtil (); > > use Apache::Server (); > use Apache::ServerUtil (); > use Apache::Connection (); > use Apache::Log (); > > use Apache::Session (); > > use APR::Table (); > > use ModPerl::Registry (); > > use Apache::Const -compile => ':common'; > use APR::Const -compile => ':common'; > use ModPerl::Const -compile => ':common'; > > use DBI (); > use Apache::DBI (); > > 1; > > > > *** Sorcerer Linux - current > *** kernel 2.6.5-rc2 > > *** mod_perl version 1.9914 > > *** using lib/Apache/BuildConfig.pm > *** Makefile.PL options: > MP_APXS => /home/test/usr/apache2/sbin/apxs > MP_COMPAT_1X => 1 > MP_GENERATE_XS => 1 > MP_LIBNAME => mod_perl > MP_USE_DSO => 1 > MP_USE_STATIC => 1 > > > *** /home/test/usr/apache2/sbin/httpd -V > Server version: Apache/2.0.50-dev > Server built: Mar 22 2004 23:36:23 > Server's Module Magic Number: 20020903:7 > Architecture: 32-bit > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/worker" > -D APR_HAS_SENDFILE > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_SYSVSEM_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D HTTPD_ROOT="/home/test/usr/apache2" > -D SUEXEC_BIN="/home/test/usr/apache2/bin/suexec" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="/home/test/httpd/conf/mime.types" > -D SERVER_CONFIG_FILE="/home/test/httpd/conf/httpd.conf" > > > *** /home/test/perl/5.8.3-ithread/bin/perl -V > Summary of my perl5 (revision 5.0 version 8 subversion 3) > configuration: Platform: > osname=linux, osvers=2.4.25, archname=i686-linux-thread-multi > uname='linux cathy.beaucox.com 2.4.25 #1 fri feb 20 11:05:53 hst > 2004 i686 > unknown unknown gnulinux ' > config_args='-Dprefix=/home/test/perl/5.8.3-ithread -d -e > -Dusethreads -Duseshrplib' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS > -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O3', > cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS > -fno-strict-aliasing -I/usr/local/include' > ccversion='', gccversion='3.3.3', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=12 ivtype='long', ivsize=4, nvtype='double', > nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=4, prototype=define > Linker and Libraries: > ld='cc', ldflags =' -L/usr/local/lib' > libpth=/usr/local/lib /lib /usr/lib > libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc > perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc > libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, > libperl=libperl.so gnulibc_version='2.3.2' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, > ccdlflags='-rdynamic > > -Wl,-rpath,/home/test/perl/5.8.3-ithread/lib/5.8.3/i686-linux-thread-multi /CORE' > cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES > PERL_IMPLICIT_CONTEXT > Built under linux > Compiled at Feb 27 2004 10:42:45 > %ENV: > PERL_LWP_USE_HTTP_10="1" > @INC: > /home/test/perl/5.8.3-ithread/lib/5.8.3/i686-linux-thread-multi > /home/test/perl/5.8.3-ithread/lib/5.8.3 > > > > > /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3/i686-linux-thread-multi > /home/test/perl/5.8.3-ithread/lib/site_perl/5.8.3 > /home/test/perl/5.8.3-ithread/lib/site_perl . > > *** Packages of interest status: > > Apache::Request: 2.03-dev > CGI : 3.01 > LWP : 5.76 > mod_perl : 1.9914 > > Aloha => Beau; > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 939-122 WWW: http://www.ecos.de/ Fax: +49 6133 939-333 --------------------------------------------------------------------------- Besuchen Sie uns auf der CeBIT (18. - 24. März 2004) Halle 6 Stand B38-452 ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info --------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]