Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 56725 invoked from network); 12 Sep 2009 13:20:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Sep 2009 13:20:15 -0000 Received: (qmail 42032 invoked by uid 500); 12 Sep 2009 13:20:14 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 42003 invoked by uid 500); 12 Sep 2009 13:20:13 -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 41995 invoked by uid 99); 12 Sep 2009 13:20:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Sep 2009 13:20:13 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Raja.Kulasekaran@netapp.com designates 216.240.18.37 as permitted sender) Received: from [216.240.18.37] (HELO mx2.netapp.com) (216.240.18.37) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Sep 2009 13:20:04 +0000 X-IronPort-AV: E=Sophos;i="4.44,376,1249282800"; d="scan'208";a="242083827" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 12 Sep 2009 06:19:28 -0700 Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id n8CDGfS6018681; Sat, 12 Sep 2009 06:19:28 -0700 (PDT) Received: from btcrsexc1-prd.hq.netapp.com ([10.73.251.109]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 12 Sep 2009 06:17:15 -0700 Received: from BTCMVEXC1-PRD.hq.netapp.com ([10.73.251.108]) by btcrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 12 Sep 2009 18:47:11 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: FW: Apache::DBI Failed due to +GlobalRequest Date: Sat, 12 Sep 2009 18:47:09 +0530 Message-ID: In-Reply-To: <4AAB743E.5090007@ice-sa.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FW: Apache::DBI Failed due to +GlobalRequest Thread-Index: AcozkeU19eSMjERjRvmJVtJeqUN9FgAGKhZw References: <4AAB743E.5090007@ice-sa.com> From: "Kulasekaran, Raja" To: Cc: X-OriginalArrivalTime: 12 Sep 2009 13:17:11.0494 (UTC) FILETIME=[565E8660:01CA33AB] X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks for your mail. I did tried. It's not working . Below is my virtual host detail=20 ServerAdmin kraja@netapp.com DocumentRoot "XXXX" ServerName XXXX ErrorLog XXXX CustomLog XXXX common SetEnv PERL5LIB " XXXX/lib/" setenv ORACLE_USERID XXXX setenv ORACLE_HOME XXXX setenv LD_LIBRARY_PATH XXXX setenv ORACLE_SID XXXX setenv ORA_NLS10 XXXX PerlModule Apache::DBI PerlPostConfigRequire XXXX/startup.pl PerlOptions +GlobalRequest AddHandler server-parsed .shtml .html AddOutputFilter INCLUDES .cgi .shtml .pl .html=20 AllowOverride None Options Indexes FollowSymLinks MultiViews +ExecCGI Includes Allow from all,deny - Raja=20 -----Original Message----- From: Andr=E9 Warnier [mailto:aw@ice-sa.com]=20 Sent: Saturday, September 12, 2009 3:43 PM To: Kulasekaran, Raja Subject: Re: FW: Apache::DBI Failed due to +GlobalRequest Kulasekaran, Raja wrote: > Hi,=20 >=20 > =20 >=20 > I have configured with my apache 2.2 with Mod perl. When I tried to > use Apache::DBI for persistent Database connection, It shows the = below > error=20 >=20 > =20 >=20 > [Thu Sep 10 14:39:30 2009] [error] Global $r object is not available. > Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at > /var/www/audashboard/exec/startup.pl line 24.\nCompilation failed in > require at (eval 5) line 1.\n >=20 > [Thu Sep 10 14:40:05 2009] [warn] Init: Session Cache is not = configured > [hint: SSLSessionCache] >=20 > [Thu Sep 10 14:40:05 2009] [error] Global symbol "$r" requires = explicit > package name at startup.pl line 24.\nCompilation failed in require at > (eval 5) line 1.\n >=20 > =20 >=20 > I have re-installed CGI 3.45 and enable the PerlOptions in my virtual > host. But still it is not working for me . >=20 What happens if you set that option *outside* of any VirtualHost=20 section, like in the main config. file ?