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

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

1 Answer 1

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

 
discard

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