Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81CE811EA6 for ; Mon, 13 May 2013 14:23:50 +0000 (UTC) Received: (qmail 23118 invoked by uid 500); 13 May 2013 13:23:41 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 22838 invoked by uid 500); 13 May 2013 13:23:41 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 22825 invoked by uid 99); 13 May 2013 13:23:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 13:23:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jitendra.soni@accenture.com designates 213.199.154.253 as permitted sender) Received: from [213.199.154.253] (HELO db9outboundpool.messaging.microsoft.com) (213.199.154.253) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 May 2013 13:23:35 +0000 Received: from mail8-db9-R.bigfish.com (10.174.16.244) by DB9EHSOBE003.bigfish.com (10.174.14.66) with Microsoft SMTP Server id 14.1.225.23; Mon, 13 May 2013 13:23:13 +0000 Received: from mail8-db9 (localhost [127.0.0.1]) by mail8-db9-R.bigfish.com (Postfix) with ESMTP id 47E9D2E0793 for ; Mon, 13 May 2013 13:23:13 +0000 (UTC) X-Forefront-Antispam-Report: CIP:170.252.43.196;KIP:(null);UIP:(null);IPV:NLI;H:amrxe3001.dir.svc.accenture.com;RD:amrxe3001.accenture.com;EFVD:NLI X-SpamScore: -11 X-BigFish: VPS-11(zzbb2dI98dI9371Ic89bh1be0I542I1432I13e6K168aJzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz17326ah18602eh8275bhz2fh2a8h668h839h947hd25hf0ah1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1b0ah1d0ch1d2eh1d3fh1155h) Received-SPF: pass (mail8-db9: domain of accenture.com designates 170.252.43.196 as permitted sender) client-ip=170.252.43.196; envelope-from=jitendra.soni@accenture.com; helo=amrxe3001.dir.svc.accenture.com ;ccenture.com ; Received: from mail8-db9 (localhost.localdomain [127.0.0.1]) by mail8-db9 (MessageSwitch) id 1368451391110094_15833; Mon, 13 May 2013 13:23:11 +0000 (UTC) Received: from DB9EHSMHS003.bigfish.com (unknown [10.174.16.241]) by mail8-db9.bigfish.com (Postfix) with ESMTP id 0E6482C0047 for ; Mon, 13 May 2013 13:23:11 +0000 (UTC) Received: from amrxe3001.dir.svc.accenture.com (170.252.43.196) by DB9EHSMHS003.bigfish.com (10.174.14.13) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 13 May 2013 13:23:10 +0000 Received: from AMRXH3003.dir.svc.accenture.com (10.63.34.25) by amrxe3001.accenture.com (10.63.35.191) with Microsoft SMTP Server id 8.3.298.1; Mon, 13 May 2013 09:23:11 -0400 Received: from email.accenture.com (170.248.175.64) by AMRXH3003.dir.svc.accenture.com (10.63.34.73) with Microsoft SMTP Server (TLS) id 8.3.298.1; Mon, 13 May 2013 09:22:25 -0400 Received: from 048-CH1MPN1-213.048d.mgd.msft.net ([169.254.3.70]) by 048-CH1MMR1-025.048d.mgd.msft.net ([170.248.175.64]) with mapi id 14.02.0328.011; Mon, 13 May 2013 13:22:18 +0000 From: To: Subject: RE: Perl module not reading/setting PerlSetEnv command on apache start Thread-Topic: Perl module not reading/setting PerlSetEnv command on apache start Thread-Index: Ac5P0L3QIGxBpcs8SuGipRY363GHQwABLYCAAAAyA+AAAGIbgAAAJ77QAAAX0IAAANu3AAAAEhOw Date: Mon, 13 May 2013 13:22:44 +0000 Message-ID: References: <5190DC8F.4010403@ice-sa.com> <5190E071.5090202@ice-sa.com> <5190E7DE.9040605@ice-sa.com> In-Reply-To: <5190E7DE.9040605@ice-sa.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.246.9.60] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: accenture.com X-Virus-Checked: Checked by ClamAV on apache.org Actually I am new to perl and need some help in fixing this issue. Do I nee= d to change the User to ROOT in conf file then start apache?? Met vriendelijke groet / With kind regards, Jitendra Soni KPN - Application Development Accenture | Bangalore INDIA Mailto : jitendra.soni@accenture.com Mobile : (+91) 99 860 298 97 -----Original Message----- From: Andr=E9 Warnier [mailto:aw@ice-sa.com]=20 Sent: Monday, May 13, 2013 6:47 PM To: mod_perl list Subject: Re: Perl module not reading/setting PerlSetEnv command on apache s= tart jitendra.soni@accenture.com wrote: > I am starting apache with ROOT user and apache is configured with below U= ser/Group like below. Is this causing any issue? >=20 That is probably the issue indeed. I believe that you can probably figure out the rest by yourself. > # don't use Group #-1 on these systems! > # > User nobody > Group nobody > > >=20 > # >=20 > Met vriendelijke groet / With kind regards, >=20 > Jitendra Soni > KPN - Application Development > Accenture | Bangalore INDIA > Mailto : jitendra.soni@accenture.com > Mobile : (+91) 99 860 298 97 >=20 >=20 > -----Original Message----- > From: Andr=E9 Warnier [mailto:aw@ice-sa.com] > Sent: Monday, May 13, 2013 6:16 PM > To: mod_perl list > Subject: Re: Perl module not reading/setting PerlSetEnv command on=20 > apache start >=20 > The error message says : >=20 > 09/05/13 - 12:05:17 - CacheDirectoryStore not exist. Please set the va= riable=20 > CacheDirectoryStore into httpd.conf, (the directory must be writeable) =20 > > >=20 > Are you sure that this directory exists and is writeable (by the user-id = under which Apache runs) ? >=20 >=20 > jitendra.soni@accenture.com wrote: >> Hi Andre, >> >> Because I have set CacheDirectoryStore in my httpd conf file but it's no= t read by AMF51DegreesFilter.pm file while starting apache. >> >> Met vriendelijke groet / With kind regards, >> >> Jitendra Soni >> KPN - Application Development >> Accenture | Bangalore INDIA >> Mailto : jitendra.soni@accenture.com >> Mobile : (+91) 99 860 298 97 >> >> >> -----Original Message----- >> From: Andr=E9 Warnier [mailto:aw@ice-sa.com] >> Sent: Monday, May 13, 2013 5:59 PM >> To: mod_perl list >> Subject: Re: Perl module not reading/setting PerlSetEnv command on=20 >> apache start >> >> Hi. >> >> And what makes you think that this is a mod_perl problem ? >> There is a fairly explicit error message (and support address) below, wh= ich tends to point to a problem in the add-on module or the configuration. >> >> >> >> jitendra.soni@accenture.com wrote: >>> Gentlemen, >>> >>> I need urgent help from you in fixing issue related to apache mobile fi= lter 3.53. On putting below AMF configuration in apache httpd conf file I a= m not able to start apache. >>> >>> Below is the AMF configuration I have added in httpd conf: >>> >>> # >>> #Configuration AMF Filter >>> # >>> PerlSetEnv AMFMobileHome /home/AMF >>> #PerlSetEnv AMFProductionMode true >>> PerlSetEnv CacheDirectoryStore /home/soni498/AMF/cache/=20 >>> PerlTransHandler +Apache2::AMF51DegreesFilter >>> >>> # >>> #Configuration Switcher >>> # >>> >>> PerlSetEnv WildCardRedirect false >>> PerlSetEnv ForceTabletAsFullBrowser false PerlSetEnv FullBrowserUrl >>> http://sz1061.app.gen.local:83 PerlSetEnv MobileVersionUrl=20 >>> http://sz1061.app.gen.local:83/m/ PerlTransHandler >>> +Apache2::AMFSwitcher >>> >>> >>> -------------8<---------- Start Bug Report ------------8<----------=20 >>> 1. Problem Description: >>> >>> Perl module not reading/setting the PerlSetEnv command, hence not get= ting CacheDirectoryStore value while stating apache. See error below: >>> (1) While starting below error we are getting # ./apachectl.e.83 -k=20 >>> start >>> 09/05/13 - 12:05:17 - -------------------------------------------------= -------------------------- >>> 09/05/13 - 12:05:17 - ------- APACHE MOBILE FILTER V3.5= 4 ------- >>> 09/05/13 - 12:05:17 - ------- support=20 >>> http://groups.google.com/group/amf-device-detection ------- >>> 09/05/13 - 12:05:17 - >>> -------------------------------------------------------------------- >>> - >>> ------ >>> 09/05/13 - 12:05:17 - AMF51DegreesFilter module Version 3.54 >>> 09/05/13 - 12:05:17 - AMFCheckVersione is false, AMF don't check the la= st version. >>> 09/05/13 - 12:05:17 - CacheDirectoryStore not exist. Please set the = variable CacheDirectoryStore into httpd.conf, (the directory must be writea= ble) >>> >>> >>> (2) In apache logs we are getting below error: >>> [Mon May 13 13:16:39 2013] [info] mod_ssl/2.2.20 compiled against >>> Server: Apache/2.2.20, Library: OpenSSL/0.9.8k Mon May 13 13:16:39=20 >>> 2013] [error] ModPerl::Util::exit: (120000) exit was called at=20 >>> /usr/local/lib/perl5/site_perl/5.14.2/Apache2/AMF51DegreesFilter.pm >>> line 128Compilation failed in require at (eval 2) line 2.\n failed=20 >>> to load Apache2::AMF51DegreesFilter package >>> >>> 2. Used Components and their Configuration: >>> >>> *** mod_perl version 2.000007 >>> >>> *** using /home/soni498/mod_perl-2.0.7/lib/Apache2/BuildConfig.pm >>> >>> *** Makefile.PL options: >>> MP_APR_LIB =3D> aprext >>> MP_APXS =3D> /usr/apache02/httpd_2.2.20/bin/apxs >>> MP_COMPAT_1X =3D> 1 >>> MP_GENERATE_XS =3D> 1 >>> MP_LIBNAME =3D> mod_perl >>> MP_USE_DSO =3D> 1 >>> >>> >>> *** /usr/httpd2.2.20/httpd/bin/httpd -V Server version:=20 >>> Apache/2.2.20 >>> (Unix) >>> Server built: Feb 5 2013 08:10:24 >>> Server's Module Magic Number: 20051115:28 Server loaded: APR 1.4.5,=20 >>> APR-Util 1.3.12 Compiled using: APR 1.4.5, APR-Util 1.3.12 >>> Architecture: 32-bit >>> Server MPM: Prefork >>> threaded: no >>> forked: yes (variable process count) >>> Server compiled with.... >>> -D APACHE_MPM_DIR=3D"server/mpm/prefork" >>> -D APR_HAS_SENDFILE >>> -D APR_HAS_MMAP >>> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D=20 >>> APR_USE_PROC_PTHREAD_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D=20 >>> SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D=20 >>> AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=3D128 -D=20 >>> HTTPD_ROOT=3D"/usr/httpd2.2.20/httpd" >>> -D SUEXEC_BIN=3D"/usr/httpd2.2.20/httpd/bin/suexec" >>> -D DEFAULT_PIDLOG=3D"logs/httpd.pid" >>> -D DEFAULT_SCOREBOARD=3D"logs/apache_runtime_status" >>> -D DEFAULT_LOCKFILE=3D"logs/accept.lock" >>> -D DEFAULT_ERRORLOG=3D"logs/error_log" >>> -D AP_TYPES_CONFIG_FILE=3D"conf/mime.types" >>> -D SERVER_CONFIG_FILE=3D"conf/httpd.conf" >>> >>> *** /usr/bin/ldd /usr/httpd2.2.20/httpd/bin/httpd >>> libm.so.2 =3D> /lib/libm.so.2 >>> libaprutil-1.so.0 =3D> /usr/httpd2.2.20/httpd/lib/libapruti= l-1.so.0 >>> libexpat.so.0 =3D> /usr/httpd2.2.20/httpd/lib/libexpat.= so.0 >>> libiconv.so.2 =3D> /usr/local/lib/libiconv.so.2 >>> libapr-1.so.0 =3D> /usr/httpd2.2.20/httpd/lib/libapr-1.= so.0 >>> libuuid.so.1 =3D> /lib/libuuid.so.1 >>> libsendfile.so.1 =3D> /lib/libsendfile.so.1 >>> librt.so.1 =3D> /lib/librt.so.1 >>> libsocket.so.1 =3D> /lib/libsocket.so.1 >>> libnsl.so.1 =3D> /lib/libnsl.so.1 >>> libpthread.so.1 =3D> /lib/libpthread.so.1 >>> libc.so.1 =3D> /lib/libc.so.1 >>> libgcc_s.so.1 =3D> /usr/local/lib/libgcc_s.so.1 >>> libaio.so.1 =3D> /lib/libaio.so.1 >>> libmd.so.1 =3D> /lib/libmd.so.1 >>> libmp.so.2 =3D> /lib/libmp.so.2 >>> libscf.so.1 =3D> /lib/libscf.so.1 >>> libdoor.so.1 =3D> /lib/libdoor.so.1 >>> libuutil.so.1 =3D> /lib/libuutil.so.1 >>> libgen.so.1 =3D> /lib/libgen.so.1 >>> /lib/libm/libm_hwcap1.so.2 >>> /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1 >>> >>> >>> *** (apr|apu)-config linking info >>> >>> -L/usr/apache02/httpd_2.2.20/lib -laprutil-1 -lexpat -liconv >>> -L/usr/apache02/httpd_2.2.20/lib -lapr-1 -luuid -lsendfile -lrt=20 >>> -lsocket -lnsl -lpthread >>> >>> >>> >>> *** /usr/local/bin/perl -V >>> Summary of my perl5 (revision 5 version 14 subversion 2) configuration: >>> >>> Platform: >>> osname=3Dsolaris, osvers=3D2.10, archname=3Dsun4-solaris-thread-mul= ti >>> uname=3D'sunos sz1061 5.10 generic_147440-19 sun4u sparc sunw,sparc= -enterprise ' >>> config_args=3D'-de -Dcc=3Dgcc' >>> hint=3Dprevious, useposix=3Dtrue, d_sigaction=3Ddefine >>> useithreads=3Ddefine, usemultiplicity=3Ddefine >>> useperlio=3Ddefine, d_sfio=3Dundef, uselargefiles=3Ddefine, usesock= s=3Dundef >>> use64bitint=3Dundef, use64bitall=3Dundef, uselongdouble=3Dundef >>> usemymalloc=3Dn, bincompat5005=3Dundef >>> Compiler: >>> cc=3D'gcc', ccflags =3D'-D_REENTRANT -fno-strict-aliasing -pipe -I/= usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -DPERL_USE_S= AFE_PUTENV -DPERL_USE_SAFE_PUTENV', >>> optimize=3D'-O', >>> cppflags=3D'-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/in= clude -D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGE= FILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -DPERL_USE_SAFE_PUTENV' >>> ccversion=3D'', gccversion=3D'3.4.6', gccosandvers=3D'solaris2.10' >>> intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder= =3D4321 >>> d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdbls= ize=3D16 >>> ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_t= =3D'off_t', lseeksize=3D8 >>> alignbytes=3D8, prototype=3Ddefine >>> Linker and Libraries: >>> ld=3D'gcc', ldflags =3D' -L/usr/local/lib ' >>> libpth=3D/usr/local/lib /usr/lib /usr/ccs/lib >>> libs=3D-lsocket -lnsl -ldl -lm -lpthread -lc >>> perllibs=3D-lsocket -lnsl -ldl -lm -lpthread -lc >>> libc=3D/lib/libc.so, so=3Dso, useshrplib=3Dfalse, libperl=3Dlibperl= .a >>> gnulibc_version=3D'' >>> Dynamic Linking: >>> dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D' = ' >>> cccdlflags=3D'-fPIC', lddlflags=3D'-G -L/usr/local/lib' >>> >>> >>> Characteristics of this binary (from libperl): >>> Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV >>> PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP >>> PERL_PRESERVE_IVUV PERL_USE_SAFE_PUTENV USE_ITH= READS >>> USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF >>> USE_REENTRANT_API >>> Built under solaris >>> Compiled at Feb 5 2013 10:37:08 >>> %ENV: >>> PERL_LWP_USE_HTTP_10=3D"1" >>> @INC: >>> /usr/local/lib/perl5/site_perl/5.14.2/sun4-solaris-thread-multi >>> /usr/local/lib/perl5/site_perl/5.14.2 >>> /usr/local/lib/perl5/5.14.2/sun4-solaris-thread-multi >>> /usr/local/lib/perl5/5.14.2 >>> . >>> >>> *** Packages of interest status: >>> >>> Apache2 : - >>> Apache2::Request : - >>> CGI : 3.52 >>> ExtUtils::MakeMaker: 6.57_05 >>> LWP : 6.05 >>> mod_perl : - >>> mod_perl2 : 2.000007 >>> >>> >>> 3. This is the core dump trace: (if you get a core dump): >>> >>> [CORE TRACE COMES HERE] >>> >>> This report was generated by t/REPORT on Mon May 13 11:27:44 2013 GMT. >>> >>> -------------8<---------- End Bug Report --------------8<---------- >>> >>> Note: Complete the rest of the details and post this bug report to=20 >>> modperl perl.apache.org. To subscribe to the list send an empty=20 >>> email to modperl-subscribe@perl.apache.org. >>> >>> Met vriendelijke groet / With kind regards, >>> >>> Jitendra Soni >>> KPN - Application Development >>> Accenture | Bangalore INDIA >>> Mailto : jitendra.soni@accenture.com Mobile : (+91) 99 860 298 97 >>> >>> >>> ________________________________ >>> This message is for the designated recipient only and may contain privi= leged, proprietary, or otherwise confidential information. If you have rece= ived it in error, please notify the sender immediately and delete the origi= nal. Any other use of the e-mail by you is prohibited. >>> >>> Where allowed by local law, electronic communications with Accenture an= d its affiliates, including e-mail and instant messaging (including content= ), may be scanned by our systems for the purposes of information security a= nd assessment of internal compliance with Accenture policy. >>> >>> _____________________________________________________________________ >>> _________________ >>> >>> www.accenture.com >>> >> >> >> >=20 >=20 >=20 >=20