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.

I have the following setup : Centos 6.4, Apache set up to work with WHM/ cpanel with it's version of PHP (5.4) and nginx running a separate version of PHP to handle everything else.

How can I do a yum install for some php extensions ? If i just type the command it will install it for the apache php, right ?

Sorry if it's a noob question, but I'm new at this.

Thanks in advance!

share|improve this question
    
And how the second version of php is installed? –  kworr Sep 26 '13 at 15:05
    
I installed cpxstack plugin for cpanel –  Mihai Sep 27 '13 at 7:38

1 Answer 1

up vote 0 down vote accepted

Found the answer for this one :

I downloaded the PHP version that I had installed with cpxstack and built every module that i needed from that source. At first I had an issue with the .so being built against the newer version of PHP and after a little search I found that I had to run the config command with the correct PHP version

    .configure --with-php-config=/opt/pifpm/php-5.3.26/bin/php-config

and then make

Don't use make install because it will try to install it in a different folder. Just copy/paste the resulting .so in the php extensions folder and activate them through php ini. Some modules, like APC hava a different installation process, but you can find that on the cpxstack wiki page.

share|improve this answer

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.