Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Mod_perl AGAIN !!!!!

Quote Reply
Mod_perl AGAIN !!!!!
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 !!!Crazy


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Mod_perl AGAIN !!!!! In reply to
recommend_it.cgi looks like it isn't working under strict and warnings. This is something pugdog will need to address (again!).

It also looks like your sendlinkowner.cgi plugin is not properly installed.

Last edited by:

Paul: Aug 1, 2002, 2:19 AM
Quote Reply
Re: [Paul] Mod_perl AGAIN !!!!! In reply to
Thanks Paul.....
other suggestions ????


Thanks in Advance
Bye From Italy
Quote Reply
Re: [fabio] Mod_perl AGAIN !!!!! In reply to
I've nearly finished my version of recommend_it so that will fix part of your problem (if you want it of course)

As for the other errors i don't know what to say...you are just missing some files by the looks of it.

>>
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.
<<

Do you know where this is coming from?

Last edited by:

Paul: Aug 1, 2002, 9:52 AM