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 want to install php5 on my machine and also php5-cli. I want to first install the ordinary php5 package and then php5-cli.

Are there likely to be any conflicts if I do this:

sudo apt-get install php5

followed by this:

sudo apt-get install php5-cli
share|improve this question
up vote 4 down vote accepted

No, there should be no problems at all. If there are, they are unexpected bugs. In fact, you can install both at once:

sudo apt-get install php5 php5-cli

In general, Debian maintainers (and downstream, Ubuntu maintainers) work hard to make sure packages work well with each other. If they do not, they are marked as being in conflict with each other, and apt-get will not let you install both.

share|improve this answer

If you plan to use php 5.4 and the interactive cli (php -a), don't forget to add the php5-readline package as well.

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.