Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to install PHP5 without installing apache, in Ubuntu?

If so, how?

share|improve this question

2 Answers 2

up vote 34 down vote accepted
$ sudo apt-get install php5-cli  

Should do it.

share|improve this answer

Yes, it is possible to install PHP5 without installing apache, in Ubuntu.

share|improve this answer
It might be more helpful to tell the OP how (but ErikA has already done that). –  Dennis Williamson Mar 4 '11 at 17:07
Yeah, but that wasn't the question... If Yoga has asked how then I would have said how. When people write good questions then it enables other people in the future to find the questions and answers when searching the site. This reduces duplicate questions. –  JeffG Mar 4 '11 at 17:13
then edit the question to make it better and write the answer that you know you should have given. –  EEAA Mar 4 '11 at 17:17
Good point, EricA, I'll upvote that, comment. –  JeffG Mar 4 '11 at 17:18

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.