I'm Triyng to enable mod_perl under LinkSql 2.0.5:
I've added this lin on httpd.conf:
#Mod_per
PerlRequire /usr/share/doc/mod_perl-1.24_01/eg/startup.pl
<Location /cgi-bin/admin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
And this is startup.pl:
#example PerlRequire script for mod_perl
#it's recommened that you use Apache::Registry as your default
#handler for the handler stage of a request
#or, implement your handler for this or any stage of a request
#as a PerlModule under the Apache:: namespace
#PerlRequire is here if you choose otherwise...
#To load this file when the server starts -
#can be a full path or relative to ServerRoot
#add this to srm.conf:
#PerlRequire scripts/startup.pl
# make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";
#modify @INC if needed
#use lib qw(/foo/perl/lib);
#load perl modules of your choice here
#this code is interpreted *once* when the server starts
use lib '/home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin';
use Links::mod_perl;
#use CGI ();
#use LWP::UserAgent ();
#use Apache::DBI ();
#you may define Perl*Handler subroutines here too
1; #return true value
But when I try to restart apache:
[root@ns init.d]# ./httpd restart
Shutting down http: [ OK ]
Starting httpd: Ambiguous call resolved as CORE::warn(), qualify as such or use & at (eval 13) line 95.
WARNING in build_rating: "my" variable $topnumber masks earlier declaration in same scope at (eval 171) line 37.
Preloading Links SQL scripts into mod_perl:
. . . . . . . . . . . Variable "$SCRIPT_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 142.
Variable "$SITE_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 143.
Variable "$SITE_URL" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 144.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 146.
Variable "$count_recs" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 193.
Variable "$SITE_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 278.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 280.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 336.
. . . . [Thu Aug 1 10:54:29 2002] [error] Can't locate Links/User/Sendlinkowner.pm in @INC (@INC contains: /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
BEGIN failed--compilation aborted at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
Compilation failed in require at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
BEGIN failed--compilation aborted at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
Compilation failed in require at (eval 1) line 1.
Syntax error on line 430 of /etc/httpd/conf/httpd_app.conf:
Can't locate Links/User/Sendlinkowner.pm in @INC (@INC contains: /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
BEGIN failed--compilation aborted at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
Compilation failed in require at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
BEGIN failed--compilation aborted at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
Compilation failed in require at (eval 1) line 1.
[FAILED]
HELP ME HELP ME !!!
Thanks in Advance
Bye From Italy
I've added this lin on httpd.conf:
#Mod_per
PerlRequire /usr/share/doc/mod_perl-1.24_01/eg/startup.pl
<Location /cgi-bin/admin>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>
And this is startup.pl:
#example PerlRequire script for mod_perl
#it's recommened that you use Apache::Registry as your default
#handler for the handler stage of a request
#or, implement your handler for this or any stage of a request
#as a PerlModule under the Apache:: namespace
#PerlRequire is here if you choose otherwise...
#To load this file when the server starts -
#can be a full path or relative to ServerRoot
#add this to srm.conf:
#PerlRequire scripts/startup.pl
# make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";
#modify @INC if needed
#use lib qw(/foo/perl/lib);
#load perl modules of your choice here
#this code is interpreted *once* when the server starts
use lib '/home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin';
use Links::mod_perl;
#use CGI ();
#use LWP::UserAgent ();
#use Apache::DBI ();
#you may define Perl*Handler subroutines here too
1; #return true value
But when I try to restart apache:
[root@ns init.d]# ./httpd restart
Shutting down http: [ OK ]
Starting httpd: Ambiguous call resolved as CORE::warn(), qualify as such or use & at (eval 13) line 95.
WARNING in build_rating: "my" variable $topnumber masks earlier declaration in same scope at (eval 171) line 37.
Preloading Links SQL scripts into mod_perl:
. . . . . . . . . . . Variable "$SCRIPT_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 142.
Variable "$SITE_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 143.
Variable "$SITE_URL" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 144.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 146.
Variable "$count_recs" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 193.
Variable "$SITE_NAME" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 278.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 280.
Variable "$MAXNUM" will not stay shared at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/recommend_it.cgi line 336.
. . . . [Thu Aug 1 10:54:29 2002] [error] Can't locate Links/User/Sendlinkowner.pm in @INC (@INC contains: /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
BEGIN failed--compilation aborted at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
Compilation failed in require at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
BEGIN failed--compilation aborted at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
Compilation failed in require at (eval 1) line 1.
Syntax error on line 430 of /etc/httpd/conf/httpd_app.conf:
Can't locate Links/User/Sendlinkowner.pm in @INC (@INC contains: /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/admin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl . /etc/httpd/ /etc/httpd/lib/perl) at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
BEGIN failed--compilation aborted at /home/virtual/site56/fst/var/www/cgi-bin/cercaziende/sendlinkowner.cgi line 19.
Compilation failed in require at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
BEGIN failed--compilation aborted at /usr/share/doc/mod_perl-1.24_01/eg/startup.pl line 23.
Compilation failed in require at (eval 1) line 1.
[FAILED]
HELP ME HELP ME !!!
Thanks in Advance
Bye From Italy