Composer and allow_url_fopen
When I do composer update on an account I am getting an error that allow_url_fopen is not enabled. Is there some other place this needs to be set other than in the Multi PHP Manager? It is allowed there and always has been.
The "https://www.setasign.com/downloads/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)-
Have you enabled allow_url_fopen through WHM panel? - Go to WHM panel
- Search MultiPHP INI Editor
- Select Editor Mode then select the php version in Edit the INI settings of a PHP version
- Search allow_url_fopen, make it as On as follows below:
php -d allow_url_fopen=on composer [your command here]0 -
If anyone else has this problem, composer uses what is set for the system PHP not for an individual account. 0 -
Glad you could figure it out! 0 -
Nice work! 0
Please sign in to leave a comment.
Comments
4 comments