Mountain Lion Zend Install - You must enable the openssl extension to download files via https
I'd like to say there was an easy fix. My suggestion is to use homebrew, install everything, then make sure your php.ini is in the right spot (probably have to move it) and also that you change the permissions on local\openssl so that homebrew can write to it. Eventually by moving php.ini around and installing php54 I was able to get it to work.
these are great resources
http://juniorgrossi.com/2013/working-with-multiple-php-versions-on-mac-os-x/
http://railsapps.github.io/openssl-certificate-verify-failed.html
The openssl extension is required for SSL/TLS protection
The same error occurred to me. I fixed it by turning off TLS for Composer, it's not safe but I assumed the risk on my develop machine.
try this:
composer config -g -- disable-tls true
and re-run your Composer. It works to me!
But it's unsecure and not recommended for your Server. The official website says:
If set to true all HTTPS URLs will be tried with HTTP instead and no network-level encryption is performed. Enabling this is a security risk and is NOT recommended. The better way is to enable the php_openssl extension in php.ini.
If you don't want to enable unsecure layer in your machine/server, then setup your php to enable openssl and it also works. Make sure the PHP Openssl extension has been installed and enable it on php.ini file.
To enable OpenSSL, add or find and uncomment this line on your php.ini file:
Linux/OSx:
extension=php_openssl.so
Windows:
extension=php_openssl.dll
And reload your php-fpm / web-server if needed!
UPDATE:
As of PHP 7.4 the extension is named extension=openssl
(known for Windows).
Composer Warning: openssl extension is missing. How to enable in WAMP
WAMP uses different php.ini files in the CLI and for Apache. when you enable php_openssl through the WAMP UI, you enable it for Apache, not for the CLI.
You need to modify C:\wamp\bin\php\php-5.4.3\php.ini to enable it for the CLI.
Related Topics
Laravel 5.2 - Use a String as a Custom Primary Key for Eloquent Table Becomes 0
How to Insert Multiple Checkbox Values into a Table
PHP Return Only Duplicated Entries from an Array
Using PHP Replace Spaces in Urls with %20
How to Remove Square Brackets and Anything Between Them with a Regex
How to Display Image from Database Using PHP
Object of Class Datetime Could Not Be Converted to String
How to Tell If a Session Is Active
How to Solve JSON_Error_Utf8 Error in PHP JSON_Decode
Joomla 3.2.1 Password Encryption
How to Get the Previous Url Using PHP
How to Deep Copy a Datetime Object
Disable Laravel's Built-In Error Handling Methods
How to Set .Env Values in Laravel Programmatically on the Fly
How to Capitalize First Letter of First Word in a Sentence