Control Web Panel
WebPanel => PHP => Topic started by: intellitech on January 31, 2015, 04:37:38 PM
-
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.
-
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
-
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
-
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. :(
-
Vladi - I actually even tried it on the demo site on here, and PHP won't switch .... :(
-
php-imap requires some custom packages, this comes with the new version.
-
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?
-
why do you need it and why are you using yum for installing since CWP has a custom apache & PHP compiled ?
-
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.
-
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
-
imap is in the php options.