Posted on

PHP Warning: PHP Startup: Unable to load dynamic library ‘openssl’ getting error when run magento commands

I am getting the below error when I run Magento commands in the terminal.

I’m Use LAMP

php -dmemory_limit=8G bin/magento cache:flush

PHP Warning: PHP Startup: Unable to load dynamic library ‘openssl’
(tried: /usr/lib/php/20190902/openssl (/usr/lib/php/20190902/openssl:
cannot open shared object file: No such file or directory),
/usr/lib/php/20190902/openssl.so (/usr/lib/php/20190902/openssl.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 ‘sodium’ (tried: /usr/lib/php/20190902/sodium (/usr/lib/php/20190902/sodium:
cannot open shared object file: No such file or directory),
/usr/lib/php/20190902/sodium.so (/usr/lib/php/20190902/sodium.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 ‘xsl’ (tried: /usr/lib/php/20190902/xsl (/usr/lib/php/20190902/xsl: cannot
open shared object file: No such file or directory),
/usr/lib/php/20190902/xsl.so (/usr/lib/php/20190902/xsl.so: undefined
symbol: dom_node_class_entry)) in Unknown on line 0
PHP Warning: Module ‘curl’ already loaded in Unknown on line 0
PHP Warning: Module ‘intl’ already loaded in Unknown on line 0
PHP Warning: Module ‘mbstring’ already loaded in Unknown on line 0
PHP Warning: Module ‘soap’ already loaded in Unknown on line 0
PHP Warning: Module ‘sockets’ already loaded in Unknown on line 0

Leave a Reply

Your email address will not be published. Required fields are marked *