PHP Extension Installation

Started by intellitech, January 31, 2015, 04:37:38 PM

Previous topic - Next topic

intellitech

Hi,
I've just come across an issue which perhaps someone may have already solved - I need to install the php-imap exention, so, I ran the comman via a root terminal session: yum install php-imap
Installation completed successfully, and httpd was restarted.

However, when I access the service and try to use the application which requires the php module, it's still not available.

On checking the php.info via root, it doesn't show the extension enabled.

Any ideas or pointers will be appreciated.

vladi246

Try to do via your admin panel, php version switcher which you will found when you are loggin with root and from there try to do compilation include --with-your-module-which-you-need

vladi246

Like here

http://forum.centos-webpanel.com/php/php-version-switcher/

There is a line
"- In PHP compiler you can add or remove modules you want (please use only: one per line)."

Cheers

intellitech

Thanks for your reply vladi - unfortunately, it didn't work (I had tried it before) ... unfortunately, as I was unable to find any documentation on manually compiling php to work with this control panel - I kind of gave up on it .... 
I tried the PHP switcher, and rebuilding from the "admin" panel - tailed the process via an ssh session and it compiles successfully, however, if you refresh the admin panel, restart the httpd process or reboot the server, the PHP version remains the same. :(

intellitech

Vladi - I actually even tried it on the demo site on here, and PHP won't switch .... :(

Administrator

php-imap requires some custom packages, this comes with the new version.

muhittin

Hello friends,
i am new CWP, i need to use php-cli,
i install php-cli this command in terminal:
yum instal php-cli
after return message:
Package php-cli-5.3.3-40.el6_6.i686 already installed and latest version
and after try:
which php-cli
retun mesage:
/usr/bin/which: no php-cli in (/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)

where is wrong?

Wants $10 bonus for FREE on VPS DigitalOcean

https://www.digitalocean.com/?refcode=4f7603c80195
-----------------------------------------------

Administrator

why do you need it and why are you using yum for installing since CWP has a custom apache & PHP compiled ?

CWP Lovers

Quote from: Administrator on March 10, 2015, 11:16:52 PM
why do you need it and why are you using yum for installing since CWP has a custom apache & PHP compiled ?

anyone now how to config and enable php-imap on PHP-FPM? already check the ipap on custom option. but nothing happened.

studio4host

as usal when something is not working on the server you need to check the logs, all log locations are specified on the cwp wiki...additionally when you click on start build PHP version button you get the log location filename where you can read if something has gone wrong
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Sandeep