upgrade perl?

vincenzobar

Verified User
Joined
Aug 15, 2004
Messages
89
I upgraded perl to 5.8.7 and when i do a
perl -v it shows it however...

when i run a phpinfo.php it says that perl 5.8.5 is running and when i installed spamd.sh it showed perl 5.8.5

how do i upgrade it into DA and stuff?
 
Did you install perl into the same directory that DirectAdmin initially does? Search your server for multiple perl binaries.
 
which directory is that?

I installed it into /usr/bin/perl and it's defaults. where else do i store it and how would i install it to store it there
 
What output do you get from these commands:

$ which perl

$ whereis perl

Jeff
 
which perl

/usr/local/bin/perl

whereis perl

perl: /usr/bin/perl /usr/local/bin/perl /usr/share/man/man1/perl.1.gz
 
Your system is using the copy of perl at /usr/local/bin/perl unless your scripts include shebang lines for the one at /usr/bin/perl.

My guess is that apache is set to use the wrong one.

Do you find anything if you search /etc/httpd/conf/httpd.conf for the word perl ?

Don't forget your perl scripts all have shebang lines as the first line:

#!/usr/local/bin/perl

or

#!/usr/bin/perl

and all your scripts not running as CGIs are using the shebang line to tell them which copy of perl to use.

Jeff
 
just this

LoadModule php4_module /usr/lib/apache/libphp4.so
LoadModule frontpage_module /usr/lib/apache/mod_frontpage.so
#LoadModule perl_module /usr/lib/apache/mod_perl.so
#LoadModule perl_module /usr/lib/apache/libperl.so
 
Check to see whether those uncommented lines refer to the new libraries or the old.

Jeff
 
Back
Top