• 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

Resolved PHP extentions

Use following instruction for haru module and CentOS7 x64:

# yum install plesk-php56-devel gcc make libpng-devel re2c
# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/l/libharu-2.2.1-6.el7.x86_64.rpm
# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/l/libharu-devel-2.2.1-6.el7.x86_64.rpm
# /opt/plesk/php/5.6/bin/pecl install haru
# echo "extension=haru.so" > /opt/plesk/php/5.6/etc/php.d/haru.ini
# plesk bin php_handler --reread

Sockets is already supported:

# /opt/plesk/php/5.6/bin/php -i | grep -i sockets
......
Sockets Support => enabled
 
now i see i need instruction for this extention (php 5.6):
wddx
It's not so easy as previous module.
First of all you need to find somewhere package like php-xml-5.6.xx where xx should be the same as in output of command:

# /opt/plesk/php/5.6/bin/php -v
PHP 5.6.27 (cli) (built: Oct 17 2016 10:48:15)

And for 64bit architecture. For example - http://www.rpmfind.net/linux/RPM/fedora/updates/24/x86_64/p/php-xml-5.6.27-1.fc24.x86_64.html

Then upload this package to your server and extract files from this package without installation. It should be something like:

# rpm2cpio /root/php-xml-5.6.27-1.fc24.x86_64.rpm | cpio -idmv

After that you will have wddx module file /root/usr/lib64/php/modules/wddx.so
You need to copy this file to correct place, it should be something like:

# cp /root/usr/lib64/php/modules/wddx.so /opt/plesk/php/5.6/lib64/php/modules/

Then set corresponding ini file:

# echo "extension=wddx.so" > /opt/plesk/php/5.6/etc/php.d/wddx.ini

And rebuild php handlers:

#plesk bin php_handler --reread


I have checked it on my Plesk server on CentOS6.7 i386 and all works fine. Unfortunately I haven't now CentOS7 server for checking, but I have tried to adapt instruction above to this case. So, do not forget that it is just general instruction and you can use it just as template for your server and conditions. I hope that you could adapt it.


 
... one little additional information for a "wddx" - extension:

The extension wddx must be loaded after the depending extension "xml.so" - so pls. consider to lift-up the "xml.ini" - loading at the suggested path from @IgorG ( "/opt/plesk/php/5.6/etc/php.d" ) by renaming it with for example to "99-xml.ini". ;)
 
WOW!!!

thank you both!! that worked perfectly, all i had to customize was the folder which i uploaded the RPM to (which was ~ in my case)
great answers, detailed and understood!
I am working in a big hosting company and the ability to get answers makes Plesk our favorite and recommended panel

Noam
 
Back
Top