Reposting from #4729:
So the server I’m trying to install a wp package has
allow_url_fopen=0thus I get the following error
Error: The “https://wp-cli.org/package-index/packages.json” file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)
I don’t have access to the primary
php.inifile so I’ve created a user specific
php.inialso enabling the option
> export WP_CLI_PHP="/usr/local/bin/php -c /path/to/php.ini" > echo $WP_CLI_PHP /usr/local/bin/php -c /path/to/php.ini
Re-login to the server and tried installing the package again, shows the same initial error. Is there any workaround or I am doing something wrong?
The page I need help with: [log in to see the link]
- The topic ‘Alternate way to install packages’ is closed to new replies.