
15th November 2005, 07:11
|
|
Junior Member
|
|
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

15th November 2005, 09:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
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...
|

15th November 2005, 17:51
|
|
Junior Member
|
|
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
|
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
|

15th November 2005, 18:12
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
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.
|

15th November 2005, 21:35
|
|
Junior Member
|
|
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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 ?
|

15th November 2005, 21:52
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
OK, now i understand what your problem is. Please have a look here:
http://www.debian.org/doc/manuals/ap...-show-versions
|

15th November 2005, 22:20
|
|
Junior Member
|
|
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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.
|

31st May 2007, 17:08
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

1st June 2007, 18:43
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Which Debian version do you use, and what's in /etc/apt/sources.list?
|

3rd June 2007, 17:03
|
|
Junior Member
|
|
Join Date: Apr 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 05:57.
|
|
Recent comments
1 day 3 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 9 hours ago
2 days 10 hours ago