Hello,
We have a problem to continue the second part of the installation of LinkSQL 3.0..
When executing admin.cgi (with mode perl) happens the following error:
[Sat Jun 11 15:37:15 2005] [error] Global symbol "$PLG" requires explicit package name at /var/www/perl/cgi-bin/admin/admin.cgi line 106.!BEGIN not safe after errors--compilation aborted at /var/www/cgi-bin/admin/admin.cgi line 209.!
Server Version: Apache/1.3.27 - Linux
mod_perl/1.26
File startup.pl
##################################################
use lib '/var/www/perl/cgi-bin/admin';
use Links::mod_perl;
use strict;
# Extend @INC if needed
BEGIN { unshift(@INC, '/var/www/perl/cgi-bin/admin"); }
# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";
# For things in the "/perl" URL
use Apache::Registry;
# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
#use LWP::UserAgent ();
use Apache::DBI ();
use DBI ();
# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \&Carp::cluck;
# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
use CGI qw/-compile :all/;
CGI->compile(':all');
# Initialize the database connections for each child
Apache::DBI->connect_on_init
("DBI:mysql:database=name_database;host=localhost",
"user","pass",
{
PrintError => 1, # warn() on errors
RaiseError => 0, # don't die on error
AutoCommit => 1, # commit executes immediately
}
);
##################################################
File httpd.conf
###################################################
<IfModule mod_perl.c>
Alias /perl /var/www/perl
<Directory /var/www/perl>
Allow from All
AllowOverride All
Order allow,deny
Options +ExecCGI
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
PerlRequire /var/www/perl/cgi-bin/admin/startup.pl
</Directory>
SetEnv SITE_PERL /var/www/perl
</IfModule>
#########################################################
Regards,
Jose Balza
We have a problem to continue the second part of the installation of LinkSQL 3.0..
When executing admin.cgi (with mode perl) happens the following error:
[Sat Jun 11 15:37:15 2005] [error] Global symbol "$PLG" requires explicit package name at /var/www/perl/cgi-bin/admin/admin.cgi line 106.!BEGIN not safe after errors--compilation aborted at /var/www/cgi-bin/admin/admin.cgi line 209.!
Server Version: Apache/1.3.27 - Linux
mod_perl/1.26
File startup.pl
##################################################
use lib '/var/www/perl/cgi-bin/admin';
use Links::mod_perl;
use strict;
# Extend @INC if needed
BEGIN { unshift(@INC, '/var/www/perl/cgi-bin/admin"); }
# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";
# For things in the "/perl" URL
use Apache::Registry;
# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
#use LWP::UserAgent ();
use Apache::DBI ();
use DBI ();
# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \&Carp::cluck;
# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
use CGI qw/-compile :all/;
CGI->compile(':all');
# Initialize the database connections for each child
Apache::DBI->connect_on_init
("DBI:mysql:database=name_database;host=localhost",
"user","pass",
{
PrintError => 1, # warn() on errors
RaiseError => 0, # don't die on error
AutoCommit => 1, # commit executes immediately
}
);
##################################################
File httpd.conf
###################################################
<IfModule mod_perl.c>
Alias /perl /var/www/perl
<Directory /var/www/perl>
Allow from All
AllowOverride All
Order allow,deny
Options +ExecCGI
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
PerlRequire /var/www/perl/cgi-bin/admin/startup.pl
</Directory>
SetEnv SITE_PERL /var/www/perl
</IfModule>
#########################################################
Regards,
Jose Balza