Solved

Updating PHP on Ubunto via Plesk 8.6

Posted on 2009-07-02
14
420 Views
Last Modified: 2013-11-15
Hi,

Just got a VPS and need to upgrade PHP to 5.2 (from 5.0.10). I have downloaded Putty - as a side question will this help?

My main question is - how do I upgrade PHP on the OS?
0
Comment
Question by:wilson1000
  • 8
  • 6
14 Comments
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
Sorry, my host said the version was 5.0.10 but i have just pulled this up into the browser from within plesk - it looks like the version is ok??

NameValuePHP_VERSION5.2.4-2ubuntu5.6HTTP_HOST
HTTP_USER_AGENT
HTTP_ACCEPT
HTTP_ACCEPT_LANGUAGEen-gb,en;q=0.5HTTP_ACCEPT_ENCODINGgzip,deflateHTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7HTTP_KEEP_ALIVE300HTTP_CONNECTIONkeep-aliveHTTP_REFERER
HTTP_COOKIEvzcpSession=14cc4a4ccd30t7769d9c9;vzcpTicket=14cc4a4ccd30t7769d9c9; vzcpLang=en; frameset_url=;psaContext=domains; vzcpRefreshPeriod=; vzcpTimeZone=; vzcpSkin=silver;phpMyAdmin=14cc4a4ccd30t7769d9c9REQUEST_METHODGETREQUEST_URI/test/php/test.phpREQUEST_TIME1246557019
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
<td>PHP_VERSION</td><td>5.2.4-2ubuntu5.6</td>
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
To see which version are you running, open a terminal and type

php5 -v
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
OK, so now we have determined the version - how would I initiate an upgrade?
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
That is the current version of php5 into ubuntu 9.04 server. I don't suggest you to manually install a newer version over it.
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
Which version of ubuntu are you running?
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
Ubuntu 8.04
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
So, if your version is:

PHP 5.2.4-2ubuntu5.6 with Suhosin-Patch 0.9.6.2

it is the latest version available in ubuntu 8.04

Your first question was: how do I upgrade to PHP 5.2?
You have it.
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
Thanx, i want to be able to get an answer to the question otherwise it seems pointless?

Additionally, how can I modify php.ini?
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
I have answered your question..

Question: how can I upgrade to php 5.2
Answer: I have guided you to detect that you already have php 5.2.

I don't understand what else you need.
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
I understand what your saying but If someone else searched for an answer to this question they would get it - I take it the set of commands required to run the process is complex?

And regardless, i think i answered it in my first and second replies to this thread. I wanted to give you the chance of completing the question for the points allocation thats all.
0
 
LVL 4

Author Comment

by:wilson1000
Comment Utility
Typo:

* they wouldn't get it
0
 
LVL 14

Accepted Solution

by:
fmarzocca earned 500 total points
Comment Utility
The stardard way to upgrade a package in Ubuntu is:

sudo apt-get install <package-name>

If you want to install a version different than the one provided by ubuntu, you need to install source and compile it by yourself. There are hundreds of HOW-TOs on compiling source code for LInux.

I will not suggest to install a different version of PHP5 on Ubuntu 8.04, as it will involve a lot of dependencies and will risk to mess up your system.
0
 
LVL 4

Author Closing Comment

by:wilson1000
Comment Utility
Thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Sometimes when I receive a call from my users to solve their problems it is very difficult for me to found their computer IP address. Even finding their computer Host to provide remote support can be a problem.  So I resorted to Goo…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now