Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th November 2005, 07:11
phantomk phantomk is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 15th November 2005, 09:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th November 2005, 17:51
phantomk phantomk is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #4  
Old 15th November 2005, 18:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

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.
Reply With Quote
  #5  
Old 15th November 2005, 21:35
phantomk phantomk is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 ?
Reply With Quote
  #6  
Old 15th November 2005, 21:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

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

http://www.debian.org/doc/manuals/ap...-show-versions
Reply With Quote
  #7  
Old 15th November 2005, 22:20
phantomk phantomk is offline
Junior Member
 
Join Date: Nov 2005
Posts: 25
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #8  
Old 31st May 2007, 17:08
Dr.Oetker Dr.Oetker is offline
Junior Member
 
Join Date: Apr 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #9  
Old 1st June 2007, 18:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Which Debian version do you use, and what's in /etc/apt/sources.list?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 3rd June 2007, 17:03
Dr.Oetker Dr.Oetker is offline
Junior Member
 
Join Date: Apr 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP not working jefash General 10 28th May 2006 08:48
can't login. can't prase php flourishing Installation/Configuration 6 8th November 2005 09:36
double apache installation (with php) aolex Installation/Configuration 3 19th October 2005 17:04
apache , mysql and php aolex Server Operation 4 15th October 2005 20:19
MySQL support in PHP tobi Installation/Configuration 3 2nd May 2005 22:20


All times are GMT +2. The time now is 04:00.


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