• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

[PPP-1774] Install PHP 5.6 module

philippL

New Pleskian
I was trying to install oauth - but unlike here
using /opt/plesk/php/5.6/bin/pecl didn't work. It didn't use the correct API version:
(see attachment)

So I uninstalled it and tried
Code:
/opt/plesk/php/5.6/bin/pecl config-set php_ini /opt/plesk/php/5.6/etc/php.ini
/opt/plesk/php/5.6/bin/pecl config-set php_bin /opt/plesk/php/5.6/bin
and redid the installation but that didn't have any effect.

Does anyone know a solution or do I have to compile a completely new PHP for myself?

(It seems opt/plesk/php doesn't have a phpize5 nor a php-config.)
 

Attachments

  • log.zip
    3.2 KB · Views: 1
Last edited:
Yes, the problem in that pecl for module compilation uses system phpize but not from corresponding Odin php-devel packages. For fixing this issue you should install our corresponding php-devel package and compile module again. We have already submitted bug PPP-1774 for adding check that proper phpize present in pecl.
 
Thanks that worked. Installed plesk-php56-dev and did
Code:
/opt/php/5.6/bin/pecl install oauth
again. Compiled with correct API version. Executed
Code:
echo "extension=oauth.so" > /opt/plesk/php/5.6/etc/php.d/oauth.ini
and now
Code:
/opt/plesk/php/5.6/bin/php -i
shows ouath :)
 
Back
Top