• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue PHP decimal cannot be load

DanielEl

New Pleskian
Hello,
Im trying to add a php module \ extension (Decimal) without success,
I tried to install and reinstall but looks like its install it but not loading it,
my error :
PHP Warning: PHP Startup: Unable to load dynamic library 'decimal.so' (tried: /opt/plesk/php/7.3/lib/php/modules/decimal.so
(/opt/plesk/php/7.3/lib/php/modules/decimal.so: undefined symbol: php_json_serializable_ce), /opt/plesk/php/7.3/lib/php/modules/decimal.so.so
(/opt/plesk/php/7.3/lib/php/modules/decimal.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Any1 ever stuck in this stage ? or how can fix it?

thank you and have a good day!
 
Call the file zz-99 to make sure it’s always loaded last:

# echo "extension=decimal.so" > /opt/plesk/php/7.3/etc/php.d/zz-99-decimal.ini

after that:

# /opt/plesk/php/7.3/bin/php -m | grep decimal
decimal
 
Hello, thanks for reply,
I did it but the error still exist :
root@F0CA8E3:~# php --re decimal
PHP Warning: PHP Startup: Unable to load dynamic library 'decimal' (tried: /usr/lib/php/20180731/decimal (/usr/lib/php/20180731/decimal: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/decimal.so (/usr/lib/php/20180731/decimal.so: undefined symbol: php_json_serializable_ce)) in Unknown on line 0
PHP Warning: Module 'decimal' already loaded in Unknown on line 0
PHP Warning: Module 'decimal' already loaded in Unknown on line 0
Extension [ <persistent> extension #32 decimal version 1.4.0 ] {
 
root@F0CA8E3:~# php --re decimal
Did you compile decimal module for Plesk /opt/plesk/php/7.3/bin/php or for system /usr/bin/php? My solution is for Plesk PHP case.
 
I guess im facing in a problem, even if im just entering "pecl uninstall decimal" im getting error :
PHP Warning: PHP Startup: Unable to load dynamic library 'decimal.so' (tried: /usr/lib/php/20180731/decimal.so (/usr/lib/php/20180731/decimal.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/decimal.so.so (/usr/lib/php/20180731/decimal.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'decimal.so' (tried: /usr/lib/php/20180731/decimal.so (/usr/lib/php/20180731/decimal.so: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/decimal.so.so (/usr/lib/php/20180731/decimal.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Im trying to install it from fresh, but looks like something trying to loading it,
there is way to remove it completely ?
 
Im trying to install it from fresh, but looks like something trying to loading it,
there is way to remove it completely ?
decimal.so is mentioned in one of .ini files of PHP. Try to find this ini file and remove reference to decimal.so there.
 
Back
Top