PHP Error

After update to Catalina PHP not working properly, I tried to update PHP version n all, but still same error.


Error is as below


PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_curl.dll.so)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_fileinfo.dll.so)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_gettext.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_gettext.dll.so)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_imap.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_imap.dll.so)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_odbc.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_odbc.dll.so)) in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl.dll' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll), /usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/php_openssl.dll.so)) in Unknown on line 0

PHP 7.3.9 (cli) (built: Nov 9 2019 08:08:13) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies

Posted on Jan 7, 2020 3:47 PM

Reply

Similar questions

6 replies

Jan 7, 2020 4:52 PM in response to btailor

It sounds like you have some 3rd party modules listed in your initialization file and they are no longer present in the new operating system. Review the various "php.ini" files in /etc. Save your modified version so you can restore it later. Delete your php.ini and verify that PHP now works. See if your PHP scripts work. Maybe you don't even need those extra modules at all.


It is possible to add your own modules to PHP, but it is not a trivial task.

Jan 7, 2020 4:12 PM in response to btailor

btailor wrote:

it should be like this but in my case shows this error

And what is Composer— some Homebrew?


That (Brew) may be a better resource to ask the question—

https://medium.com/@romaninsh/install-php-7-2-xdebug-on-macos-high-sierra-with-homebrew-july-2018-d7968fe7e8b8


https://stitcher.io/blog/php-73-upgrade-mac


Andy Miller posted on 10/08/2019 in macos + catalina + apache + homebrew + php 15 minutes

https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

PHP Error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.