Control Web Panel

WebPanel => PHP => Topic started by: intellitech on January 31, 2015, 04:37:38 PM

Title: PHP Extension Installation
Post 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.
Title: Re: PHP Extension Installation
Post by: vladi246 on January 31, 2015, 09:50:50 PM
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
Title: Re: PHP Extension Installation
Post by: vladi246 on January 31, 2015, 09:51:53 PM
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
Title: Re: PHP Extension Installation
Post by: intellitech on February 02, 2015, 02:01:24 PM
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. :(
Title: Re: PHP Extension Installation
Post by: intellitech on February 02, 2015, 02:24:11 PM
Vladi - I actually even tried it on the demo site on here, and PHP won't switch .... :(
Title: Re: PHP Extension Installation
Post by: Administrator on February 04, 2015, 01:40:18 AM
php-imap requires some custom packages, this comes with the new version.
Title: Re: PHP Extension Installation
Post by: muhittin on March 02, 2015, 05:43:12 PM
Hello friends,
i am new CWP, i need to use php-cli,
i install php-cli this command in terminal:
Code: [Select]
yum instal php-cliafter return message:
Code: [Select]
Package php-cli-5.3.3-40.el6_6.i686 already installed and latest versionand after try:
Code: [Select]
which php-cliretun mesage:
Code: [Select]
/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?

Title: Re: PHP Extension Installation
Post by: 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 ?
Title: Re: PHP Extension Installation
Post by: CWP Lovers on December 20, 2020, 02:39:29 AM
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.
Title: Re: PHP Extension Installation
Post by: studio4host on December 22, 2020, 05:49:31 AM
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
Title: Re: PHP Extension Installation
Post by: Sandeep on December 22, 2020, 11:27:46 AM
imap is in the php options.