How would I upgrade php, mysql, and apache for debian

Discussion in 'Installation/Configuration' started by phantomk, Nov 15, 2005.

  1. phantomk

    phantomk New Member

    I want to keep apache2, php4 (currently have 4.3.X, I wish to update to 4.4.1) and mysql up-to-date on the latest releases, but I don't want to fully upgrade my entire system. How would I go about this ?

    My current server was setup useing the debian sarge perfect setup.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Run
    Code:
    apt-get update
    apt-get install mysql-server mysql-client libmysqlclient12-dev
    apt-get install apache2 apache2-doc
    apt-get install libapache2-mod-php4 libapache2-mod-perl2 php4 php4-cli php4-common php4-curl php4-dev php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash php4-mysql php4-odbc php4-pear php4-xslt curl libwww-perl imagemagick
    Please run one apt command at a time. apt doesn't like it when you paste all the commands together on the shell...
     
  3. phantomk

    phantomk New Member

    I have php, mysql, and apache already installed, wouldn't what you are suggesting return a message stateing that they are already installed ?

    Would I have to change my current soruces.list to say unstable, then do
    Code:
    apt-get update
    apt-get upgrade mysql-server mysql-client libmysqlclient12-dev
    apt-get upgrade apache2 apache2-doc
    apt-get upgrade libapache2-mod-php4 libapache2-mod-perl2 php4 php4-cli php4-common php4-curl php4-dev php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash php4-mysql php4-odbc php4-pear php4-xslt curl libwww-perl imagemagick
    I tried upgradeing through apt-get before, but all I got was a OS reinstall :S
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Have you tried what falko posted, it works!

    If you run apt-get upgrade or apt-get dist-upgrade it will upgrade your system. If you use apt-get install, apt will install the package and if it is already installed apt will look if there are newer packages and makes an update.
     
  5. phantomk

    phantomk New Member

    I tried it, returned:
    Code:
    *** is already the newest version.
    Which is what I expected it to do :S

    What I wish to do is upgrade php, mysql, apache2 to the latest releases, while keeping the rest of my systemt back, through apt-get. If you look at my previous post you will see that I am useing stable sources, do I have to change this or can I just specify which version I want ? How would I specify a specific version to upgrade to ?
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

  7. phantomk

    phantomk New Member

    I was able to upgrade useing:
    Code:
    deb http://security.debian.org/ stable/updates main contrib non-free
    deb http://http.us.debian.org/debian/ stable main contrib non-free
    deb http://http.us.debian.org/debian/ testing main contrib non-free
    deb http://http.us.debian.org/debian/ unstable main contrib non-free
    #deb-src http://http.us.debian.org/debian/ unstable main contrib non-free
    
    As my sources.list and then useing the above apt-get commands posted by falko. That process only upgraded the packages I wanted :)

    Thanks for all the replys and info, hope this topic helps someone else.
     
  8. Dr.Oetker

    Dr.Oetker New Member

    I use the soruces.list from phantomk

    I will update apache 2.0.54 to the newst version:

    apt-get upgrade apache2 apache2-doc

    Then cames:

    sure that all will work after this update?
     
  9. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Which Debian version do you use, and what's in /etc/apt/sources.list?
     
  10. Dr.Oetker

    Dr.Oetker New Member

  11. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Etch is now stable, therefore you should replace all occurrences of stable with sarge in your sources.list and run
    Code:
    apt-get update
     

Share This Page