title: custom php.ini - nothing seems to work - what do you suggest? FastCGI-php mode - allow_url_fopen OFF
body: <p>I need to modify the allow_url_fopen value from OFF to ON
  i have an hosting account on a shared hosting which uses linux and plesk...
  php is running as fastcgi and safe mode is off.
  this is the only way i can use this server (except i can switch on php safe mode)
  according to <code>phpinfo()</code> php.ini file is located here:</p>
  
  <pre><code>Configuration File (php.ini) Path   /etc 
  Loaded Configuration File   /etc/php.ini
  Scan this dir for additional .ini files     /etc/php.d 
  </code></pre>
  
  <p>php vesrion : <code>PHP Version 5.3.27</code></p>
  
  <p>i used ini_get to see the ini tree:</p>
  
  <pre><code>$options = ini_get_all();
  print_r($options);
  </code></pre>
  
  <p>this results:</p>
  
  <pre><code>[allow_url_fopen] =&gt; Array ( [global_value] =&gt; [local_value] =&gt; [access] =&gt; 4 ) 
  </code></pre>
  
  <p>i tried a few things but i am sure it's not enough or i did something wrong...
  1. tried to put a php.ini file in the httpdocs folder and didn't work
  2. tried custom cgi script - i don't know if the code was correct:</p>
  
  <pre><code>#!/bin/sh
  exec /etc/php -c /path/to/myweb/httpdocs/php.ini
  </code></pre>
  
  <p>and then called from .htacccess file </p>
  
  <pre><code>AddHandler php-cgi .php .htm
  Action php-cgi /cgi-bin/php.cgi
  </code></pre>
  
  <p>3. tried all the php <code>ini_set</code> but nothing works
  4. tried in .htaccess </p>
  
  <pre><code>php_value allow_url_fopen On
  php_value allow_url_fopen 1
  </code></pre>
  
  <p>nothing seems to work... any idea?</p>