Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently running PHP 5.4.6-1ubuntu1.1 (CLI) (built: Nov 15 2012 01:18:34) on Xubuntu. I would like to update to the latest version or >= 5.4.7. Is there another way to do this instead of compiling it from the source? If source is the only solution, can you please guide me in how to do it painlessly.

UPDATE: I did this:

Upgrading php from php 5.3 to 5.4 .7 and

Now from CLI it shows as 5.4.12, but from Apache it is still 5.4.6. Any ideas how to make Apache use the new installation of PHP?

share|improve this question
Which version of Xubuntu are you using? – Tonin Mar 12 '13 at 10:08
@Tonin Ubuntu 12.10 – stone_cold Mar 12 '13 at 10:42

If you're looking for updated PHP packages, you might want to look at dotdeb which is a well maintained repository containing the latest PHP binaries. However, it is targeted at Debian, so you'll need to see how well it is working with your Ubuntu version.

This other question on AskUbuntu also gives some pointers to some PPA containing updated PHP5 packages.

As for your compiled PHP 5.4.12 not used by apache, you probably need to tell apache which mod_php to use (the new one and not the Ubuntu provided one). Look at your apache configuration for instructions like LoadModule php5_module and see if it points at the newest one.

share|improve this answer

Your Answer


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.