PHP scripts fails with the following error: Unable to load dynamic library sodium.so : cannot open shared object file: No such file or directory

Follow

Comments

5 comments

  • Avatar
    Marcos Espert

    On my server (Ubuntu 22.04 LTS and Plesk Obsidian Version 18.0.44 Update 2) there are none of the mentioned sodium.ini files and I get the mentioned error.

    3
    Comment actions Permalink
  • Avatar
    Nicolas BAUMONT

    1
    Comment actions Permalink
  • Avatar
    Rene Siemon

    Hi,

    # sudo apt-get install plesk-php74-sodium

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package plesk-php74-sodium is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      plesk-php74

    E: Package 'plesk-php74-sodium' has no installation candidate

    #-----

    /opt/plesk/php/7.4/bin/php -m |grep -2 sodium
    PHP Warning:  PHP Startup: Unable to load dynamic library 'sodium' (tried: /opt/plesk/php/7.4/lib/php/modules/sodium (/opt/plesk/php/7.4/lib/php/modules/sodium: cannot open shared object file: No such file or directory), /opt/plesk/php/7.4/lib/php/modules/sodium.so (/opt/plesk/php/7.4/lib/php/modules/sodium.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    soap
    sockets
    sodium
    SPL
    sqlite3

    0
    Comment actions Permalink
  • Avatar
    Martin Dias

    Rene Siemon the package was removed as it is not needed anymore, it is now shipped with our builds

    Please remove the leftover ini files as described in the article, should that not help, open a ticket with us to check it further

    -1
    Comment actions Permalink
  • Avatar
    Rene Siemon

    Hi Martin,
    the problem was fixed with the last plesk update.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request