Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork185
PHP Warning: PHP Startup: Unable to load dynamic library 'openssl.so'#1565
-
problem I have been unable to resolve for two daysAnyone know how to fix the openssl.so not found error?
summary - what i triedafter macOS update to Big Sur 11.7.3, brew uninstall --ignore-dependencies opensslbrew uninstall --ignore-dependencies opensslbrew install openssl# put openssl first in the pathbrew tap shivammathur/phpbrew install shivammathur/php/php@7.4# edit php.ini, httpd.conf, and verify ~/.bashrc# testedbrew unlink php&& brew link --overwrite --force php@7.4brew services restart php@7.4# check http://localhost:8080/info.phpbrew install shivammathur/php/php@8.1# edit php.ini, httpd.conf, and verify ~/.bashrcbrew unlink php&& brew link --overwrite --force php@8.1# tested by brew services restart httpd and php@8.1# check http://localhost:8080/info.php# installed [PHP switcher script](https://gist.github.com/rhukster/f4c04f1bf59e0b74e335ee5d186a98e2)# check withsphp 7.4sphp 8.1 Install 8.2brew install shivammathur/php/php@8.2brew unlink php&& brew link --overwrite --force php@8.2# edit php.imi, httpd.conf and varify .bashrcbrew services restart shivammathur/php/php# brew services only shows php@7.4 and php@8.1 but# php@8.1 started <username> ~/Library/LaunchAgents/homebrew.mxcl.php@8.1.plist#brew reinstall$(brew deps shivammathur/php/php@8.1) shivammathur/php/php@8.1sphp 8.2# still starting 8.1sphp 8.1# check info.php in localhost -seems fimne Attempt update Xdebugpecl uninstall -r xdebugpecl install xdebug
brew info php@8.1
php --ini
|
BetaWas this translation helpful?Give feedback.
All reactions
The fileopenssl.so is not there as the openssl extension is compiled statically into php.
You have an ini entry to loadopenssl.so, which should not be there.
Please run the following command to check this
grep -r extension.*=.*openssl$(brew --prefix)/etc/php/8.1
Then comment out any lines withextension=openssl in the ini files that are uncommented by prefixing the line with a;.
Replies: 1 comment 1 reply
-
The file Please run the following command to check this grep -r extension.*=.*openssl$(brew --prefix)/etc/php/8.1 Then comment out any lines with |
BetaWas this translation helpful?Give feedback.
All reactions
-
thank you!! |
BetaWas this translation helpful?Give feedback.