Server Fault is a question and answer site for system and network administrators. 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 have multiple sites ruiing on my server with php 5.2.11 and it as CGI

Now i want to install my source matrix and it needs PHP as CLI versions.

CAn anyone guide me how to do that and will that affect my other websites

as i have heard that CLI does not work with mysql but with postgresql

share|improve this question
up vote 0 down vote accepted

The cli can work with anything the CGI version can. It's just a matter of including the proper modules.

I'm uncertain which OS you are using, but most places I've seen php installed as a CGI (in some cgi-bin directory) and as a binary (/usr/bin/php, /usr/local/bin/php, or perhaps /usr/pkg/bin/php)

share|improve this answer
I am using cent OS 5.3 – John Dec 1 '09 at 5:26
Does your package manager list php-cli? – Michael Graff Dec 1 '09 at 6:59
It don't have any option for that using using easy apache – John Dec 1 '09 at 23:02
the php cli won't be involved with apache, as it is stand-alone. If you do not have access to a Unix shell, then you are probably screwed. If you do, try something like "yum install php-cli" -- it might work, I don't run linux. – Michael Graff Dec 1 '09 at 23:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.