Title: wp-cli package install problem
Last modified: March 17, 2017

---

# wp-cli package install problem

 *  [billc108](https://wordpress.org/support/users/billc108/)
 * (@billc108)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-package-install-problem/)
 * On attempting to install wp-doctor, or any other wp-cli package. When I run
 * `wp package install <package name>`
 * or
 * `sudo wp package install <package name>`
 * I’m getting:
 * `Error: The openssl extension is required for SSL/TLS protection but is not available.
   If you can not enable the openssl extension, you can disable this error, at your
   own risk, by setting the ‘disable-tls’ option to true.`
 * Openssl version 1.0.2k_0 is installed (via MacPorts, in /opt/local/bin/openssl).
   Do I need to specify that path somehow?

Viewing 1 replies (of 1 total)

 *  [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-package-install-problem/#post-8927943)
 * Hi [@billc108](https://wordpress.org/support/users/billc108/),
 * From [this Stack Overflow thread](http://stackoverflow.com/questions/35249620/the-openssl-extension-is-required-for-ssl-tls-protection)
   it seems like you need to either enable the OpenSSL PHP extension, or recompile
   PHP with OpenSSL enabled:
 * > while one cannot simply “enable SSL in the php.ini” on Linux; PHP needs to 
   > be compiled with openSSL configured as shared library – in order to be able
   > to access it from the PHP CLI SAPI.
 * There’s also [this Stack Overflow thread](http://stackoverflow.com/questions/14062055/composer-warning-openssl-extension-is-missing-how-to-enable-in-wamp)
   which mentions:
 * > In addition to uncommenting the ;extension=php_openssl.dll line in php.ini 
   > that everyone else has mentioned, you also have to ensure the ;extension_dir
   > = “ext” line is also uncommented. To uncomment, remove the prefixed semicolon
   > and save.

Viewing 1 replies (of 1 total)

The topic ‘wp-cli package install problem’ is closed to new replies.

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/wp-cli-package-install-problem/#post-8927943)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
