Skip to main content

Sodium can' t install with Easyapache 4 over php 8.X

Comments

10 comments

  • cPRex Jurassic Moderator

    Hey there!  I see you're running version 110, but I'm not able to reproduce this there or on version 120.  Does a general "yum update" work well on that system?  It seems there may be additional steps necessary to get that working on CentOS 7:

    https://support.cpanel.net/hc/en-us/articles/360056786594-How-to-Install-the-Sodium-Cryptographic-Library-libsodium-and-PHP-Extension-on-CentOS-7-and-CloudLinux-7

    0
  • speckados

    Tip you send not work because is only for < PHP 8.0.99

    Version of cpanel is 110.0.31

    As an exception, the lifespan of cPanel & WHM version 110 extends through July 31st, 2024.

    WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to
     update
    pecl/libsodium requires PHP (version >= 7.0.0, version <= 8.0.99), installed version is 8.2.18
    No valid packages found
    install failed
    0
  • cPRex Jurassic Moderator

    We might need to see a ticket on this one since I can't reproduce this on a test system.

    0
  • speckados

    We arrive at the misery of the ticket.

    A ticket that cannot be submitted because the license is from OVH. OVH says they do not provide support. WebPros states that support is provided by the license reseller.

    What a wonderful situation.

    0
  • cPRex Jurassic Moderator

    I've let my supervisor know about OVH, as they should be providing support for your license.

    0
  • speckados

    Any ideas? 

    It's somewhat disappointing that cPanel doesn't provide support and that OVH says they only support the hardware of the machine and its network. That cPanel is not their issue.

    0
  • cPRex Jurassic Moderator

    It sounds like you should move to a host that follows the license agreement, or purchase the license directly from us.

    I'm assuming you've tried a forced update of the machine with /scripts/upcp --force ?

    What happens if you manually run "yum install ea-php82-php-sodium" on the machine?  Does that give us any interesting output?

    0
  • speckados

    yes or not. 

    After 20 years with cPanel I think is time to change panel. 

    In fact cpanel lost 65 licenses with me, and already migrated to no panel, or DirectAdmin. ;-)

    OVH is more difficult. Price, and network not equals in Europe except Hetzner, but the network is not the same. ;-)

    The other day I found a similar type (clone provision EA4 json of other machine and work.

    The tip didn't work for me on this machine because there is a problem with duplicate packages, no matter how much I try to solve it, I can't. And the packages are....ea-XXXX packages. And its dups and dependencies are from ea-XXXX.

    Which by the way are all property of... cPanel.

    That is, let's return to the issue of what is and is not support and the obligation not only of the reseller licensee, but also of the licensor itself, aka cPanel, in this type of errors that are the cause and effect of its software.

    Anyway, grateful for your time.

    Note:

    Problem? 

    Today my version of cpanel has SUPPORT but EA4 has broken in centros 7 for dependency of version of library

    Resolving Dependencies
    --> Running transaction check
    ---> Package libsodium.x86_64 0:1.0.16-1.el7 will be installed
    ---> Package libsodium-devel.x86_64 0:1.0.16-1.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ====================================================================================================================================================================================================================================================
     Package                                                        Arch                                                  Version                                                       Repository                                                 Size
    ====================================================================================================================================================================================================================================================
    Installing:
     libsodium                                                      x86_64                                                1.0.16-1.el7                                                  imunify360                                                139 k
     libsodium-devel                                                x86_64                                                1.0.16-1.el7                                                  imunify360                                                1.1 M

    Transaction Summary
    ====================================================================================================================================================================================================================================================
    Install  2 Packages

    Total download size: 1.2 M
    Installed size: 3.8 M
    Is this ok [y/d/N]: y
    Downloading packages:
    (1/2): libsodium-1.0.16-1.el7.x86_64.rpm                                                                                                                                                                                     | 139 kB  00:00:00
    (2/2): libsodium-devel-1.0.16-1.el7.x86_64.rpm                                                                                                                                                                               | 1.1 MB  00:00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                                                               2.3 MB/s | 1.2 MB  00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Installing : libsodium-1.0.16-1.el7.x86_64                                                                                                                                                                                                    1/2
      Installing : libsodium-devel-1.0.16-1.el7.x86_64                                                                                                                                                                                              2/2
      Verifying  : libsodium-devel-1.0.16-1.el7.x86_64                                                                                                                                                                                              1/2
      Verifying  : libsodium-1.0.16-1.el7.x86_64                                                                                                                                                                                                    2/2

    Installed:
      libsodium.x86_64 0:1.0.16-1.el7                                                                                       libsodium-devel.x86_64 0:1.0.16-1.el7

    Complete!

    ╭─ ~                                                                                                                                                                                                                        7s root@srv105 17:41:59
    ╰─❯ yum install ea-php82-php-sodium
    Loaded plugins: fastestmirror, universal-hooks
    Loading mirror speeds from cached hostfile
     * EA4: 185.15.22.168
     * EA4-experimental-c7: 185.15.22.168
     * cpanel-addons-production-feed: 185.15.22.168
     * cpanel-plugins: 185.15.22.168
     * base: mirrors.evoluso.com
     * extras: ftp.pasteur.fr
     * updates: mirrors.evoluso.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package ea-php82-php-sodium.x86_64 0:8.2.18-2.3.2.cpanel will be installed
    --> Processing Dependency: libsodium >= 1.0.18 for package: ea-php82-php-sodium-8.2.18-2.3.2.cpanel.x86_64
    --> Finished Dependency Resolution
    Error: Package: ea-php82-php-sodium-8.2.18-2.3.2.cpanel.x86_64 (EA4)
               Requires: libsodium >= 1.0.18
               Installed: libsodium-1.0.16-1.el7.x86_64 (@imunify360)
                   libsodium = 1.0.16-1.el7
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest








    0
  • speckados

    Solved with

    yum install ea-php82-php-sodium
    Loaded plugins: fastestmirror, universal-hooks
    Loading mirror speeds from cached hostfile
     * EA4: 185.15.22.168
     * EA4-experimental-c7: 185.15.22.168
     * cpanel-addons-production-feed: 185.15.22.168
     * cpanel-plugins: 185.15.22.168
     * base: mirrors.evoluso.com
     * extras: ftp.pasteur.fr
     * updates: mirrors.evoluso.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package ea-php82-php-sodium.x86_64 0:8.2.18-2.3.2.cpanel will be installed
    --> Finished Dependency Resolution
     
    Dependencies Resolved
     
    ====================================================================================================================================================================================================================================================
     Package                                                           Arch                                                 Version                                                             Repository                                         Size
    ====================================================================================================================================================================================================================================================
    Installing:
     ea-php82-php-sodium                                               x86_64                                               8.2.18-2.3.2.cpanel                                                 EA4                                                98 k
     
    Transaction Summary
    ====================================================================================================================================================================================================================================================
    Install  1 Package
     
    Total download size: 98 k
    Installed size: 387 k
    Is this ok [y/d/N]: y
    Downloading packages:
    ea-php82-php-sodium-8.2.18-2.3.2.cpanel.x86_64.rpm                                                                                                                                                                           |  98 kB  00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    usermod: no changes
      Installing : ea-php82-php-sodium-8.2.18-2.3.2.cpanel.x86_64                                                                                                                                                                                   1/1
    usermod: no changes
    Purging all relevant cached command results
    Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-L
    Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-l
    Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-v
    Removing:  /root/.cpanel/datastore/_usr_sbin_httpd_-V
    Rebuilding global cache
    Building global cache for cpanel...Done
    Ignoring current entry for “ea-php54” …
    Ensuring current entry for “ea-php55” is correct …
    Ensuring current entry for “ea-php56” is correct …
    Ensuring current entry for “ea-php70” is correct …
    Ensuring current entry for “ea-php71” is correct …
    Ensuring current entry for “ea-php72” is correct …
    Ensuring current entry for “ea-php73” is correct …
    Ensuring current entry for “ea-php74” is correct …
    Ensuring current entry for “ea-php80” is correct …
    Ensuring current entry for “ea-php81” is correct …
    Ensuring current entry for “ea-php82” is correct …
    info [modsec_cpanel_conf_init] The modsec2.cpanel.conf file and its datastore are already set up. No further action is required.
    Built /etc/apache2/conf/httpd.conf OK
    Nothing to do under ea4 (this script has been deprecated under ea4).
    Fix mailman package directories …
     … PID 20811
    Fix mailing list perms …
     … PID 20813
    Aligning modsec config to Whostmgr
    - Whostmgr version 11.110.0.31
    - Whostmgr supports conf.d/modsec location
    - No change necessary
    Waiting for “httpd” to restart gracefully …waiting for “httpd” to initialize ………finished.
     
    Service Status
    httpd (/usr/sbin/httpd -k start) is running as root with PID 25377 (systemd+/proc check method).
     
    Startup Log
    May 19 11:54:54 srv105.tamainut.net systemd[1]: Starting Apache web server managed by cPanel EasyApache...
    May 19 11:54:59 srv105.tamainut.net systemd[1]: Can't open PID file /run/apache2/httpd.pid (yet?) after start: No such file or directory
    May 19 11:54:59 srv105.tamainut.net systemd[1]: Started Apache web server managed by cPanel EasyApache.
    0
  • cPRex Jurassic Moderator

    It's odd that the Yum install worked but it didn't work through EA.  Either way, I'm glad things are working well now!

    0

Please sign in to leave a comment.