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,745 Times in 2,578 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: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 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: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 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
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 19:52.


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