• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Plesk PHP 7.2 and Libsodium

Hello,
I wanted to use Sodium for a one of my website, so i installed php 7.2.5 from the plesk panel, put it for the website but libsodium doesn't seem to work...
The only line with sodium in the phpinfo() is in "Module Authors" => Sodium : Frank Denis
Is there something i missed like enabling a module somewhere ?
Here's what show a 'su -c 'yum list plesk-php72\*''
Modules compl▒mentaires charg▒s▒: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: centos.mirrors.ovh.net
* extras: centos.mirrors.ovh.net
* remi: mirror.netweaver.uk
* remi-safe: mirror.netweaver.uk
* updates: centos.mirrors.ovh.net
Paquets install▒s
plesk-php72.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-bcmath.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-cli.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-dba.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-enchant.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-fpm.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-gd.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-imagick.x86_64 3.4.3-centos6.18021516 @PLESK_17_PHP72
plesk-php72-imap.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-intl.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-ioncube-loader.x86_64 10.2.0-centos6.18040410 @PLESK_17_PHP72
plesk-php72-ldap.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-mbstring.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-mysql.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-odbc.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-opcache.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-pdo.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-pear.noarch 1.10.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-pgsql.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-process.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-pspell.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-redis.x86_64 3.0.0-centos6.18010914 @PLESK_17_PHP72
plesk-php72-snmp.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-soap.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-tidy.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-xdebug.x86_64 2.6.0-centos6.18040410 @PLESK_17_PHP72
plesk-php72-xml.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
plesk-php72-xmlrpc.x86_64 1:7.2.5-centos6.18042710 @PLESK_17_PHP72
Paquets disponibles
plesk-php72-devel.x86_64 1:7.2.5-centos6.18042710 PLESK_17_PHP72
plesk-php72-release.x86_64 1:7.2.5-centos6.18042710 PLESK_17_PHP72

I read on the php doc that Sodium was a php 7.2 core feature, am i wrong ?
 
We are going to release out PHP7.2 package with included sodium support in the scope of internal request PPM-2425.

Now you can use the following method for CentOS7 or adapt this method for your OS version:

# yum install make gcc plesk-php72-devel
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libsodium-1.0.16-1.el7.x86_64.rpm
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libsodium-devel-1.0.16-1.el7.x86_64.rpm
# rpm -ivh libsodium-1.0.16-1.el7.x86_64.rpm libsodium-devel-1.0.16-1.el7.x86_64.rpm
# /opt/plesk/php/7.2/bin/pecl install libsodium
# echo "extension=sodium.so" > /opt/plesk/php/7.2/etc/php.d/sodium.ini
# plesk bin php_handler --reread

and finally, check that sodium php module is loaded:

# /opt/plesk/php/7.2/bin/php -m | grep sodium
sodium
 
Thank you very much for your reply !
As for now i'am juste developping, i can wait a little for those features and put a temporary workaround...
Is there an aproximate scheduled time for PPM-2425 (few weeks or more like months) ?
 
Oh dear still no changes ?
Mcrypt get removed on 7.2 by php developers, wich is a good thing, but you dont implement libsodium -.-
How we should encrypt and decrypt sensitive data then ? OpenSSL ?

Always the same, pay like an idiot and get nothing from it. It's already the 4th time i get in problems with Plesk and im a complete noob and using it only for ~6 months, professionals would leave there hair.

But yeah atleast you have time to add 100 of useless extensions and people wich are waiting since 2013 for a nginx geoip module are still ignored.

If i install it manually then im pretty sure if you add support everything will break ? Eather it does not make sense to install pecl only because you are not able to include libsodium in your php version.
 
Last edited:
Without any notice in the changelog the sodium PHP extension was removed from the latest Plesk PHP releases:

PHP Updates - 14 June 2022

Updated PHP 8.1 to version 8.1.7.
Updated PHP 8.0 to version 8.0.20.
Updated PHP 7.4 to version 7.4.30.

For some servers we could freeze the upgrade in the last minute.
But affected servers facing now several problems as the sodium PHP extension is required by different web solutions.
 
Back
Top