Alternate way to install packages
-
Reposting from #4729:
So the server I’m trying to install a wp package hasallow_url_fopen=0
thus I get the following errorError: 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.ini
file so I’ve created a user specificphp.ini
also enabling the optionallow_url_fopen=1
> 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?
WP-CLI:
1.5.0
The page I need help with: [log in to see the link]
- The topic ‘Alternate way to install packages’ is closed to new replies.