UpsideOut

Member
Feb 4, 2003
16
0
151
On a new server I have perl 5.8.1 installed. How can I downgrade to perl 5.6.1? I've searched all over (here, RS, google) and found no specific instructions...Thanks.

cPanel.net Support Ticket Number: 28825
 

UpsideOut

Member
Feb 4, 2003
16
0
151
I'd like to downgrade so that I can use mod_perl 1.26. Also I've had success with perl 5.6.1 on my other servers. I guess the alternative would be to get a newer version of mod_perl installed but I've relied on apache asp to install mod_perl for me in the past.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by UpsideOut
I'd like to downgrade so that I can use mod_perl 1.26. Also I've had success with perl 5.6.1 on my other servers. I guess the alternative would be to get a newer version of mod_perl installed but I've relied on apache asp to install mod_perl for me in the past.
I'm using mod_perl with 5.8. I had to re-install apache asp, but it worked after that.
 

UpsideOut

Member
Feb 4, 2003
16
0
151
Originally posted by casey
I'm using mod_perl with 5.8. I had to re-install apache asp, but it worked after that.

Hmm. I've reinstalled apache asp and it installs mod_perl as expected. However even a simple hello world script will die without error under Apache::Registry or Apache::PerlRun.
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by UpsideOut
Hmm. I've reinstalled apache asp and it installs mod_perl as expected. However even a simple hello world script will die without error under Apache::Registry or Apache::PerlRun.
Did you remember to put the code back in httpd.conf?
 

UpsideOut

Member
Feb 4, 2003
16
0
151
Yes httpd.conf looks OK. It's setup like:

<Files nph-script.cgi>
PerlModule Apache::Registry
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader Off
</Files>

This works fine on other boxes. Just not this one..
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Well, I really have no idea, so I can't be of much help. I have the following in my httpd.conf:

Code:
<Files ~ (\.asp)>    
  SetHandler  perl-script
  PerlModule  Apache::ASP
  PerlHandler Apache::ASP
  PerlSetVar  Global .
  PerlSetVar  StateDir /tmp/asp
</Files>
And the test script works for me saved as test.asp:

Code:
<html>
 <body>
 For loop incrementing font size: <p>
 <% for(1..5) { %>
<!-- iterated html text -->
<font size="<%=$_%>" > Size = <%=$_%> </font> <br>
 <% } %>
 </body>
 </html>
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Just a heads up.
If you upgrade apache, you must remove the references to apache asp from httpd.conf or else apache will not start. Then you have to re-install apache::asp after you do the upgrade.;)
 

UpsideOut

Member
Feb 4, 2003
16
0
151
Installed mod_perl 1.29 and everything is working beautifully now. Here's how I did it:

Code:
wget [url]http://search.cpan.org/CPAN/authors/id/G/GO/GOZER/mod_perl-1.29.tar.gz[/url]
tar xvzf mod_perl-1.29.tar.gz
rm mod_perl-1.29.tar.gz
cd mod_perl-1.29
perl Makefile.PL USE_APXS=1 PERL_USELARGEFILES=0 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1
make
make install
 

servmin

Member
Mar 23, 2004
14
0
151
Downgrade to 5.6.1

I'm also interested in information on downgrading to perl 5.6.1 from 5.8.1. We have a customer using Perl's LWP module to fetch images from the internet and their scripts used to run much faster on Perl 5.6.1. Does anybody know how to downgrade to 5.6.1 OR solve these LWP performance issues?