HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   How would I upgrade php, mysql, and apache for debian (http://www.howtoforge.com/forums/showthread.php?t=1257)

phantomk 15th November 2005 07:11

How would I upgrade php, mysql, and apache for debian
 
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.

falko 15th November 2005 09:48

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

phantomk 15th November 2005 17:51

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

Quote:

Originally Posted by /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ stable main
deb-src http://ftp.us.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main

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

till 15th November 2005 18:12

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.

phantomk 15th November 2005 21:35

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 ?

till 15th November 2005 21:52

OK, now i understand what your problem is. Please have a look here:

http://www.debian.org/doc/manuals/ap...-show-versions

phantomk 15th November 2005 22:20

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.

Dr.Oetker 31st May 2007 17:08

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:

Quote:

Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
apache2-mpm-prefork apache2.2-common binutils cpp-3.3 fontconfig fontconfig-config g++-3.3 gcc-3.3 gcc-3.3-base
gcc-4.2-base libapache2-mod-perl2 libapache2-mod-php4 libapr1 libaprutil1 libc6 libc6-dev libcurl4-openssl libdb4.4
libfontconfig1 libfreetype6 libgcc1 libgcrypt11 libgcrypt11-dev libgd2-xpm libgpg-error-dev libgpg-error0 libidn11
libkeyutils1 libkrb53 libncurses5 libperl5.8 libpng12-0 libpq5 libreadline5 libsqlite3-0 libssl0.9.8 libstdc++5
libstdc++5-3.3-dev libstdc++6 libxml2 libxml2-dev libxslt1-dev libxslt1.1 locales lsb-base perl perl-base perl-modules
php4-cli php4-common php4-curl php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash readline-common
Suggested packages:
binutils-doc gcc-3.3-doc php-pear glibc-doc manpages-dev libfreetype6-dev rng-tools libgcrypt11-doc libgd-tools krb5-doc
krb5-user libstdc++5-3.3-doc stl-manual libterm-readline-gnu-perl libterm-readline-perl-perl
Recommended packages:
ca-certificates xml-core perl-doc
The following packages will be REMOVED:
apache2-common base-config php4-mysql php4-odbc php4-xslt
The following NEW packages will be installed:
apache2.2-common fontconfig-config gcc-4.2-base libapr1 libaprutil1 libcurl4-openssl libdb4.4 libkeyutils1 libpq5
libreadline5 libsqlite3-0 libssl0.9.8 lsb-base readline-common
The following packages will be upgraded:
apache2 apache2-doc apache2-mpm-prefork binutils cpp-3.3 fontconfig g++-3.3 gcc-3.3 gcc-3.3-base libapache2-mod-perl2
libapache2-mod-php4 libc6 libc6-dev libfontconfig1 libfreetype6 libgcc1 libgcrypt11 libgcrypt11-dev libgd2-xpm
libgpg-error-dev libgpg-error0 libidn11 libkrb53 libncurses5 libperl5.8 libpng12-0 libstdc++5 libstdc++5-3.3-dev
libstdc++6 libxml2 libxml2-dev libxslt1-dev libxslt1.1 locales perl perl-base perl-modules php4-cli php4-common php4-curl
php4-domxml php4-gd php4-imap php4-ldap php4-mcal php4-mhash
46 upgraded, 14 newly installed, 5 to remove and 262 not upgraded.
Need to get 45.4MB of archives.
After unpacking 12.4MB of additional disk space will be used.
Do you want to continue? [Y/n]
sure that all will work after this update?

falko 1st June 2007 18:43

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

Dr.Oetker 3rd June 2007 17:03

Debian 3.1

sources.list:

Quote:

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


All times are GMT +2. The time now is 23:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.