Skip to main content

allow_url_fopen is Off in php.ini and On in phpinfo()

Comments

9 comments

  • cPRex Jurassic Moderator
    Hey there! A bit further up in the PHP Info page you've created you'll see a "loaded configuration" line. Does that list any other configuration files for PHP on the system? There could be a local value in public_html leading to this behavior for that specific domain.
    0
  • Wil Colón
    Hi, thanks for checking. I believe I grep'ped everything loaded, see attached.
    0
  • cPRex Jurassic Moderator
    That's interesting - on my personal system, I setup a domain to use PHP 7.3, and confirmed the php.ini has allow_url_fopen set to "off" by default. I then checked a PHP info page and confirmed that value was "off" there as well. What if you try running this on the system? #/opt/cpanel/ea-php73/root/usr/bin/php /home/username/public_html/phpinfo.php | grep allow_url_fopen allow_url_fopen => Off => Off
    That will perform a check of the PHP Info page manually on the command line with PHP version 7.3, and might show something different than the browser.
    0
  • Wil Colón
    That sound you hear is me scratching 'me' head. Off it says!
    0
  • cPRex Jurassic Moderator
    Progress! So that would confirm that things on the server side are working well. Are we certain the domain name and PHP Info page you're checking in the browser has its DNS pointed to the same machine you're checking on command line? If you have another machine with Curl installed you could run "curl -v Best Website Builder Online | Yoursite" to see if there is any odd redirection happening and what IP address is returning that content.
    0
  • Wil Colón
    An interesting possibility! I added an "echo ..." at the end of phpinfo.php. The echoed line showed up in both the web and local runs of phpinfo.php, so it is indeed the same server and script. Attached is a side by side comparison of the more interesting bits from both outputs. The only difference I can find is the url_fopen setting. Damn!!
    0
  • cPRex Jurassic Moderator
    Alright - I think it's time to get a ticket in with our team. Can you do that and post the number here so I can follow along?
    0
  • Wil Colón
    The issue was PHP-FPM. As I was preparing the ticket/request the system offered an
    0
  • cPRex Jurassic Moderator
    Interesting - I wasn't aware of that one! I'm glad you got it resolved though!
    0

Please sign in to leave a comment.