Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Daemon User

by jai_dgl (Beadle)
on Dec 15, 2009 at 13:51 UTC ( [id://812870]=perlquestion: print w/replies, xml ) Need Help??

jai_dgl has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I have upgraded Perl5.8.8 to Perl 5.10.0 in Amazon server and Installed CPAN modules, it worked well for few months. Now the issue is whenever I try the script in command line as root user it works well but when the same script is called through browser [PHP script calls the perl script as a daemon user] it tries the Perl older version(5.8.8) checks for the modules only in older version directory not in the 5.10.0 directory

The error log file shows the following message
Can't locate CAM/PDF.pm in @INC (@INC contains: /usr/lib/perl5/site_pe +rl/5.8.8/i386-linux-thread-multi
Perl version shows as follows
# perl -v This is perl, v5.10.0 built for i686-linux
Thanks Jey

Replies are listed 'Best First'.
Re: Daemon User
by Anonymous Monk on Dec 15, 2009 at 14:01 UTC
    instead of #!/usr/bin/perl use the path to the 5.10 version

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://812870]
Approved by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-19 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found