I need to set the php setting "allow_url_fopen" to "On".
I intend to install Drupal using Composer and the php setting "allow_url_fopen" needs to be set to "On". The system default seems to be set to "Off". I have a local php.ini file, that was created through cPanel, in my home directory with the "allow_url_fopen" set to "On". However Composer won't run and complains about the incorrect setting. If from my directory I execute the command ">php -i | grep allow_url_fopen" I see the output as "allow_url_fopen => Off => Off".
Why is then when I run php from my home directory the settings in the local php.ini file aren't being respected?
Hello Charles,
Thank you for cotacting us about changing your PHP settings. A phpinfo page can help you verify that the changes are being reflected. Also, you may have to make the rules in the php.ini file recursive, this means the changes will affect any child files/folders.
Also, check that there aren't additional php.ini files in a higher level folder or other location.
Thank you,
John-Paul