i am trying to install magento 2.4.0 via ssh into my server, i am using composer i mean i have downloaded the composer.phar file and drop it into the folder.... then i tried to install my magento but appears this error:
i have already enabled the "allow_url_fopen" in the php.ini but error still appearing
could you please help me?
thanks!
Hi @cesarupb ,
Here’s a simple workaround, by setting the option when calling the composer binary.
$ which composer /usr/local/bin/composer $ php -d allow_url_fopen=on /usr/local/bin/composer install
By calling the php binary with the -dallow_url_fopen=on parameter, you’re overwriting the php.ini for that invocation of composer. So you can bypass the php.ini settings altogether.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
Make sure you restart your server after changing in php.ini and Magento 2.4 works well with PHP 7.3.