Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Updating PHP on Ubunto via Plesk 8.6

Posted on 2009-07-02
14
426 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
ID: 24765908
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
ID: 24765925
<td>PHP_VERSION</td><td>5.2.4-2ubuntu5.6</td>
0
 
LVL 14

Expert Comment

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

php5 -v
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 4

Author Comment

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

Expert Comment

by:fmarzocca
ID: 24766217
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
ID: 24766233
Which version of ubuntu are you running?
0
 
LVL 4

Author Comment

by:wilson1000
ID: 24766445
Ubuntu 8.04
0
 
LVL 14

Expert Comment

by:fmarzocca
ID: 24766468
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
ID: 24766503
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
ID: 24766577
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
ID: 24766659
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
ID: 24766683
Typo:

* they wouldn't get it
0
 
LVL 14

Accepted Solution

by:
fmarzocca earned 500 total points
ID: 24770382
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
ID: 31599299
Thank you
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

839 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