Startup: Unable to load dynamic library 'curl' - PHP 8.1 - AlmaLinux

Hilbert

New member
Joined
Sep 1, 2023
Messages
1
Hello,

On our DirectAdmin server, curl.so is not installed in the right folder so it's failing in PHP. I already tried all the solutions on the internet.

Detailed error when executing "PHP -v":
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/curl (/usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/curl: cannot open shared object file: No such file or directory), /usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/curl.so (/usr/local/php81/lib/php/extensions/no-debug-non-zts-20210902/curl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

The folder contains the files "imagick.so" and "opcache.so".

What I tried:
  • Installing php-curl, php8.1-curl and php81-curl via yum and dnf (Remi 9 installed) - All not found
  • Curl is installed
  • Remi release 9 reinstall
  • Updated the complete Linux server and it's packages

Versions:
curl 7.76.1 (x86_64-redhat-linux-gnu) libcurl/7.76.1 OpenSSL/3.0.7 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh/0.10.4/openssl/zlib nghttp2/1.43.0
Release-Date: 2021-04-14
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

PHP 8.1.22 (cli) (built: Sep 1 2023 07:33:43) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.22, Copyright (c) Zend Technologies
with Zend OPcache v8.1.22, Copyright (c), by Zend Technologies

NAME="AlmaLinux"
VERSION="9.2 (Turquoise Kodkod)"

I hope you can help me out.

Kind regards,
Hilbert
 
Back
Top