title: allow_url_fopen local variable
body: <p>I added recaptcha in phpMyAdmin by adding the two variables</p>
  <blockquote>
  <p>$cfg['CaptchaLoginPublicKey'] = 'Site key';</p>
  <p>$cfg['CaptchaLoginPrivateKey'] = 'Secret key';</p>
  </blockquote>
  <p>but I got errors below.</p>
  <pre><code>Warning in ./libraries/plugins/auth/recaptcha/ReCaptcha/RequestMethod/Post.php#68
   file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
  
  Backtrace
  
  ./libraries/plugins/auth/recaptcha/ReCaptcha/RequestMethod/Post.php#68: file_get_contents(
  string 'https://www.google.com/recaptcha/api/siteverify',
  boolean false,
  resource,
  )
  ./libraries/plugins/auth/recaptcha/ReCaptcha/ReCaptcha.php#94: ReCaptcha\RequestMethod\Post-&gt;submit(object)
  ./libraries/plugins/auth/AuthenticationCookie.class.php#366: ReCaptcha\ReCaptcha-&gt;verify(
  string '03AHJ_VuvVnV4jlI2mNDNogB6eajU4jE--F7ve8zMdP0Xf636gaBeNE_dK9-',
  string '10.0.5.1',
  )
  ./libraries/common.inc.php#896: AuthenticationCookie-&gt;authCheck()
  ./index.php#12: require_once(./libraries/common.inc.php)
  
  Warning in ./libraries/plugins/auth/recaptcha/ReCaptcha/RequestMethod/Post.php#68
  file_get_contents(https://www.google.com/recaptcha/api/siteverify): failed to open stream: no suitable wrapper could be found
  
  Backtrace
  
  ./libraries/plugins/auth/recaptcha/ReCaptcha/RequestMethod/Post.php#68: file_get_contents(
  string 'https://www.google.com/recaptcha/api/siteverify',
  boolean false,
  resource,
  )
  ./libraries/plugins/auth/recaptcha/ReCaptcha/ReCaptcha.php#94: ReCaptcha\RequestMethod\Post-&gt;submit(object)
  ./libraries/plugins/auth/AuthenticationCookie.class.php#366: ReCaptcha\ReCaptcha-&gt;verify(
  string '03AHJ_VuvVnV4jlI2mNDNogB6eajU4jE--F7ve',
  string '10.0.5.1',
  )
  ./libraries/common.inc.php#896: AuthenticationCookie-&gt;authCheck()
  ./index.php#12: require_once(./libraries/common.inc.php)
  </code></pre>
  <p>so I want to turn on the allow_url_fopen for phpMyAdmin.  I changed /etc/php5/apache2/php.ini and /etc/php5/fpm/php.ini to</p>
  <blockquote>
  <p>allow_url_fopen = On</p>
  <p>allow_url_include = On</p>
  </blockquote>
  <p>The root phpinfo shows me the correct settings.</p>
  <pre><code>Directive           Local Value    Master Value
  allow_url_fopen     On             On
  allow_url_include   On             On
  </code></pre>
  <p>However, in the phpMyAdmin folder.</p>
  <pre><code>Directive           Local Value    Master Value
  allow_url_fopen     Off            On
  allow_url_include   On             On
  </code></pre>
  <p>so I tried the PHP to test in phpMyAdmin folder.</p>
  <blockquote>
  <p>ini_set(&quot;allow_url_fopen&quot;, true);</p>
  <p>if (ini_get(&quot;allow_url_fopen&quot;) == true) { echo &quot;allow_url_fopen is ON&quot;; }</p>
  <p>else { echo &quot;allow_url_fopen is OFF&quot;; }</p>
  <p>print ini_get(&quot;allow_url_fopen&quot;);</p>
  <p>print ini_get(&quot;allow_url_include&quot;);</p>
  <p>exit;</p>
  </blockquote>
  <pre><code>allow_url_fopen is OFF01
  </code></pre>
  <p>I also tried to add .htaccess in phpMyAdmin folder.</p>
  <blockquote>
  <p>php_value allow_url_fopen On</p>
  </blockquote>
  <p>Why the local value cannot be changed in phpMyAdmin folder?</p>
  <p>My server is Debian8.2, PHP5.6.17, phpMyAdmin4.5, MySQL5.7 and it's behind a firewall.</p>
  <p>I know it's dangerous to set the global allow_url_fopen to On.  How can I just set it available to the phpMyAdmin folder only?</p>