Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 searched but didnt find solution to our problem...

We have offline (intranet) Ubuntu 12.04 LTS installation. We made local offline Ubuntu 12.04 repo mirror (updating once in a week) and I can install all other things from there. But how to install PHP 5.4? Repo mirror contains only PHP 5.3.x version. I've read that there is somekind "ondrej/...." PPA where is PHP 5.4 for 12.04 LTS but I cant access to this location from my offline network Ubuntu. How to create local mirror or download all required packages from this PPA? Is there procedure for this like apt-mirror script for mirroring repository?

Thank U all,


share|improve this question
Do you have access to any other computer with Ubuntu that is connected to the internet? – Salem Aug 24 '13 at 18:31
up vote 0 down vote accepted

Download latest version of PHP from: Official PHP download page

And extract the file usually in tar format, see the INSTALL file and follow the step by step instructions for installation of PHP.

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.