The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Downgrade perl 5.8.1 to 5.6.1

Discussion in 'General Discussion' started by UpsideOut, Nov 8, 2003.

  1. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    So far I've tried:

    # wget http://layer1.cpanel.net/perl561installer.tar.gz
    # tar xvzf perl561installer.tar.gz
    # cd perl561installer
    # ./wp-cpup/install

    but perl -v still shows 5.8.1. I must be missing something obvious. Does anybody know the correct procedure to downgrade to perl 5.6.1?
     
  3. RaveKnights

    RaveKnights Well-Known Member

    Joined:
    Nov 5, 2003
    Messages:
    81
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Some Where Out There!
    Any reason why you need to downgrade?
     
  4. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    I'm using mod_perl with 5.8. I had to re-install apache asp, but it worked after that.
     
  6. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1

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

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Did you remember to put the code back in httpd.conf?
     
  8. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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..
     
  9. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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>
    
     
  10. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    I have done what casey has done with the current perl and apache asp and it works fine.
     
  11. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    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.;)
     
  12. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    Yes, if you update or recompile apache, you will have to reinstall apache::asp.
     
  13. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    #13 UpsideOut, Nov 14, 2003
    Last edited: Nov 14, 2003
  14. UpsideOut

    UpsideOut Member

    Joined:
    Feb 4, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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
    
     
  15. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Cool. Glad to hear you got it working.:)
     
  16. servmin

    servmin Member

    Joined:
    Mar 23, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  17. denisdekat09

    denisdekat09 Well-Known Member

    Joined:
    Mar 2, 2002
    Messages:
    265
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Francisco
    I tired to use the layer1 perl installer for perl5.6 and it would nto work. Any one ever figure this out?
     
Loading...

Share This Page