Hi,
Thanks for your mail. I did tried. It's not working .
Below is my virtual host detail
<VirtualHost xxxx>
ServerAdmin [email protected]
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
<Directory "XXXX">
AddHandler server-parsed .shtml .html
AddOutputFilter INCLUDES .cgi .shtml .pl .html
AllowOverride None
Options Indexes FollowSymLinks MultiViews +ExecCGI Includes
Allow from all,deny
</Directory>
</VirtualHost>
- Raja
-----Original Message-----
From: André Warnier [mailto:[email protected]]
Sent: Saturday, September 12, 2009 3:43 PM
To: Kulasekaran, Raja
Subject: Re: FW: Apache::DBI Failed due to +GlobalRequest
Kulasekaran, Raja wrote:
> Hi,
>
>
>
> 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
>
>
>
> [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
>
> [Thu Sep 10 14:40:05 2009] [warn] Init: Session Cache is not configured
> [hint: SSLSessionCache]
>
> [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
>
>
>
> I have re-installed CGI 3.45 and enable the PerlOptions in my virtual
> host. But still it is not working for me .
>
What happens if you set that option *outside* of any VirtualHost
section, like in the main config. file ?