Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an Ubuntu 10.04 Server installation with PHP 5.3.2 installed, I want to upgrade it to PHP 5.3.5. I'm led to believe that apt-get upgrade will only install security updates, we're on this LTS release and don't plan on updating our servers until 12.04, so it's pretty important for us to be able to update PHP.

Any ideas?

Many thanks.

share|improve this question
    
Related, possible duplicate askubuntu.com/questions/72387/… –  BullfrogBlues Apr 30 '12 at 14:44
add comment

6 Answers 6

Then you'll most likely have to build from source. Head to http://php.net, download the sources and build your PHP version.

share|improve this answer
    
I'll give that a go and come back with an update. –  Ben Everard Feb 28 '11 at 19:07
add comment

If you want to keep current with the latest upstream version, you should compile PHP from source. That allows you to tweak your installation even more, take time for reading through the extensions page for customizing PHP. Running ./configure --help in the source folder shows you a list of options too.

When compiling from source, it's strongly recommended to subscribe to the PHP announcements mailing list. Go to http://php.net/mailing-lists.php, check the radio button "Normal" at Announcements, fill your email address in the bottom form and press "Subscribe".

share|improve this answer
add comment

You could try the ppa listed here: https://launchpad.net/~nginx/+archive/php5?field.series_filter=lucid

It points to ppa:nginx/php5

I haven't tried it, tho..

share|improve this answer
add comment

I installed Zend Server Community edition to get an updated version of PHP.

http://www.zend.com/en/products/server-ce/downloads

To me, this is a relatively easy way to keep PHP up to date. Not the latest and greatest, but Zend will eventually catch up IMHO.

The most important steps, for me, was making sure that all the unwanted parts didn't launch when the server rebooted. The Zend Server daemons are controlled via: /usr/local/zend/bin/zendctl.sh which is symlinked to /etc/init.d/zend-server. These can be turned on/off using a variation of update-rc.d zend-server defaults

PS: If you try this, make sure you type "CE" for "Community edition" during apt-get install, otherwise it's not free (as in beer).

share|improve this answer
add comment

Just install it from the source. There is not expected release data for the next version in the repository.

share|improve this answer
    
I'll give that a go and come back with an update. –  Ben Everard Feb 28 '11 at 19:07
add comment

Security patches will be back ported. Features will not. This the entire point of LTS. Your alternative is to build from source.

share|improve this answer
2  
This is essentially correct, but: (1) Serious stability/usability bugs may also be backported, (2) this policy is in no way specific to LTS releases (and actually, LTS releases have exceptions: kernels are backported, and drivers for some new hardware are backported), and (3) backports are often available outside of the default-enabled software sources, through the -backports repositories. –  Eliah Kagan Aug 17 '12 at 23:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.