1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Upgrade PHP 4.3.9 to 5.2.0

Discussion in 'Plesk for Linux - 8.x and Older' started by LVS_Support, Oct 8, 2008.

  1. LVS_Support

    LVS_Support Guest

    0
     
    I'm new at the server and while I pay someone to monitor the server, I'd like to learn how to do some basic tasks. I've surfed the forums but have not found a good post that would help me upgrade to PHP 5.

    The Server currently is running:
    Plesk 8.6
    awstats 6.6-1.swsoft
    bind 9.2.4-30.el4
    coldfusion Component was not installed
    coldfusion-support Component was not installed
    courier-imap 3.0.8-rhel4.build86080722.02
    drweb Component was not installed
    drweb-qmail Component was not installed
    frontpage Component was not installed
    httpd 2.0.52-41.ent
    mailman 2.1.5.1-34.rhel4.6
    mod_bw Component was not installed
    mod_perl 1.99_16-4.5
    mod_python 3.1.3-5.1
    mysql 4.1.22-2.el4
    perl-Apache-ASP Component was not installed
    php 4.3.9-3.22.12
    plesk-billing Component was not installed
    postgresql-server Component was not installed
    psa 8.6.0-rhel4.build86080722.02
    psa-api-rpc 8.6.0-rhel4.build86080822.19
    psa-autoinstaller 3.3.2-080710.09
    psa-backup-manager 8.6.0-rhel4.build86080822.19
    psa-horde 3.1.7-rhel4.build86080722.02
    psa-imp 4.1.6-rhel4.build86080722.02
    psa-logrotate 3.7-rhel4.build86080722.02
    psa-manual-custom-skin-guide 8.6.0-rhel4.build86080722.02
    psa-migration-manager 8.6.0-rhel4.build86080822.19
    psa-miva Component was not installed
    psa-mod-fcgid-configurator 1.0-13
    psa-proftpd 1.3.1-rhel4.build86080722.02
    psa-qmail 1.03-rhel4.build86080822.19
    psa-qmail-rblsmtpd 0.70-rhel4.build86080722.02
    psa-rubyrails-configurator 1.1.6-rhel4.build86080722.02
    psa-spamassassin 8.6.0-rhel4.build86080722.02
    psa-tomcat-configurator 8.6.0-rhel4.build86080722.02
    psa-turba 2.1.7-rhel4.build86080722.02
    ruby 1.8.6-200703301102
    samba Component was not installed
    sitebuilder Component was not installed
    spamassassin 3.2.4-1.el4.1
    SSHTerm 0.2.2-rhel4.build86080722.02
    tomcat 5.0.30-8jpp
    webalizer 2.01_10-25


    I'd like to upgrade PHP to 5.2.0 and any other software that you feel would increase functionality and security.

    Is there a good tutorial to follow that would help me safely upgrade to PHP 5.2?

    Thank you for your help.

    Team C
    LVS Support
     
  2. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
  3. MartCom

    MartCom Guest

    0
     
    Does your answer apply to me as well atomicturtle, or should I look for another solution, since I'm running none of the OSses that your site refers to: Debian 3.1
     
  4. ropox

    ropox New Pleskian

    22
    23%
    Joined:
    Dec 14, 2007
    Messages:
    5
    Likes Received:
    0

    atomicturtle i did checked out your site on www.atomicorp.com and your php upgrade tutorial but i cant seem to get anything working.

    tried to do it manually and automatically.

    when i did it automatically with your script i got this

    # yum update
    Gathering header information file(s) from server(s)
    Server: Red Hat Linux 4AS - i386 - Base
    retrygrab() failed for:
    http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4AS/i386/headers/header.info
    Executing failover method
    failover: out of servers to try
    Error getting file http://mirror.dulug.duke.edu/pub/yum-repository/redhat/4AS/i386/headers/header.info
    [Errno 4] IOError: HTTP Error 404: Not Found


    obviously the channel is not the right one. Since i relatively new to rpms what could be wrong ?

    i'm running on a VPS
    Plesk : psa v8.6.0_build86080910.19 os_RedHat el4
    OS : Linux 2.6.9-023stab048.4-enterprise

    thank you in advance for your time
     
  5. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    for debian you can use http://www.dotdeb.org, but i suggest you to update to debian etch (sarge is end of life)
     
  6. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Yeah looks like your yum configs are wrong there. What I'd do is remove your yum install, and let the atomic installer set it up for you. If you cant do that, then you should at least remove those repos that are giving you errors.

    Did you install yum on there yourself? RHEL AS 4 doesn't normally come with it.
     
  7. LVS_Support

    LVS_Support Guest

    0
     
    Thank you!

    Atomic Rocket Turtle,

    Worked like a charm! If I had more people like you in my world there would be no problems.

    Thanks,

    LVS Support
     
  8. LVS_Support

    LVS_Support Guest

    0
     
    I hate to look a gift horse in the mouth, but you wouldn't happen to have the same easy installer for ClamAV for the same Linux box as my original post? You may not even recommend ClamAV. I'm not sure. I tried F-Secure, but had it removed from the server.

    Thanks either way.

    LVS Support
     
  9. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Yup, sure do. You can install it with "yum install clamd". And to tie it into plesk, install qmail-scanner "yum install qmail-scanner"
     
  10. LVS_Support

    LVS_Support Guest

    0
     
    Thanks for the ClamAV install instructions. Everything looks good except:
    Error: Missing Dependency: perl-suidperl is needed by package qmail-scanner

    Anything I need to worry about?

    And lastly, is there a good reference for the Linux version? I'm looking to see if there is anything I need to do to ensure it is protecting and updating properly.

    Thanks,

    CC
    LVS Support
     
  11. LVS_Support

    LVS_Support Guest

    0
     
    Got it.

    I've installed perl-suidperl. I'm researching ClamAV for my linux box now.

    Thanks,

    LVS
     
  12. janissary

    janissary Guest

    0
     
    atomicturtle doesn't work for me

    I have tried installing from your page atomicturtle but it seems that my ssh screen freezes and doesn't install yum. I have
    Plesk Control Panel version psa v8.6.0_build86080910.19 os_FedoraCore 6
    Operating system Linux 2.6.9-023stab044.4-smp

    thank you for your time
     
  13. ropox

    ropox New Pleskian

    22
    23%
    Joined:
    Dec 14, 2007
    Messages:
    5
    Likes Received:
    0
    php5 was not installed


    No yum was there for some reason. so I removed it with rpm -e yum and then went and redid the process
    from your page http://www.atomicorp.com/wiki/index.php/PHP

    everything was went ok and updated it everything and yum was looking at your channels , but php5 for some reason was not installed.

    i checked everywhere even for the rpmnew extensions and there was no php5 in order to change the php.ini files. Did i do something wrong ? Maybe these are not the correct channels to get and upgrade to php5 and even mysql4 to mysql5 ?

    i saw the repos on folder on yum.repos.d and all there is there

    -rw-r--r-- 1 root root 2490 Jul 27 05:14 CentOS-Base.repo
    -rw-r--r-- 1 root root 610 Jul 27 05:14 CentOS-Media.repo
    -rw-r--r-- 1 root root 137 Aug 1 21:01 plesk.repo


    also I did check your RPMs on by looking on http://3es.atomicrocketturtle.com/atomic/art/4ES/RPMS/ and I saw that there is PHP5 there!!! So why did yum not installed it when i asked for it ?
     
  14. ropox

    ropox New Pleskian

    22
    23%
    Joined:
    Dec 14, 2007
    Messages:
    5
    Likes Received:
    0
    solved it - upgraded it php 4 to php 5

    ok so i'm a bit newbie and i didnt figure this out from the beginning.

    I resolved it and here is what i did.

    Although i followed the steps from http://www.atomicorp.com/wiki/index.php/PHP php5 was not upgraded.
    So after some reading i went to the repos directory
    cd yum.repos.d
    and changed the file CentOS-Base.repo
    vi CentOS-Base.repo

    to open all channels so changed the enabled to 1 wherever i saw it and then saved the file.

    after that i typed

    yum update php


    Everything was looking file till there was one dependency failed : sqlite2...

    that did my nerves in since i got the message :
    Error: Missing Dependency: php <= 4.4.0 is needed by package php-sqlite2

    well i what i did was

    yum remove sqlite2

    and after that yum update php and it worked like a charm.....

    my system was Centos4 on a VPS with Plesk 8.6


    thanks atomic turtle for your repos and help
     
  15. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Did you run the atomic installer? You dont have my repo set up.

    PS- dont use the 3es repo. We terminated that one almost 2 years ago.
     
  16. janissary

    janissary Guest

    0
     
    php5 to 5.2 upgrade problem on centos6

    on my vps , yum isn't installed by default , so followin ayomic turtle's directions I tried to install yum and php update but it seems that my ssh client (I have tried with a web based ssh client and putty) seems to freeze while configuring yum. I have waited for over an hour but it stayed the smae. any suggestions for what I may do next?
     
  17. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    sounds like a client problem, theres nothing in yum or the atomic installer that could do that.
     
  18. LVS_Support

    LVS_Support Guest

    0
     
    Uninstall ClamAV & Scanner

    Atomic,

    Do you know how I could uninstall the ClamAV and perl-scanner and qmail-scanner. My SpamAssassin no longer works (since the install of ClamAV and associated software). Now we get tons of spam tagged as ***SPAM*** without removing them. This isn't too bad since many times good e-mail are tagged as spam as well. All in all, I'm looking to go back to the stock Spam Assassin or looking to add a better product to the server to help filter spam to all of our clients.

    Thanks,

    LVS Software
     
  19. desiguru

    desiguru Guest

    0
     
    This worked really well. Does anyone know to go get now mysql 5 from 4 on rhel 4?
     
  20. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
    Mysql 5.0.76 is available in the [atomic] repository as well.

    yum update mysql

    Should be all you need to do
     
Loading...