This question already has an answer here:
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 latest version or >= 5.4.7. Is there another way to do instead of making it from source? If source is the only solution can you please guide me how to do it painless.
Update: I did this:
Now from the CLI it shows 5.4.12 but from Apache it is still 5.4.6. Any ideas how to make Apache use the new installation of PHP?