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 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
add comment

2 Answers

up vote 3 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
add comment

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
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.