file_get_contents don't work with HTTPS
After upgrade to EA4 PHP function file_get_contents don't work with HTTPS
file_get_contents(h/tps://www.domain.com/) timed out
but if I try to use file_get_contents (h/ttp://www.domain.com) ( or curl with HTTPS) it works
EasyApache 4 with Apache 2.4 ITK, PHP5.4
-
This function EasyApache 4 default come disable. You can set php.ini enable. 0 -
Hello, The "allow_url_fopen" PHP directive is likely disabled on your system. You can browse to "WHM Home >> Software >> MultiPHP INI Editor" and enable it for the version of PHP you are using on that account. Also, ensure you review the following documents before making changes to your PHP configuration: How to Edit Your php.ini File - cPanel Knowledge Base - cPanel Documentation cPanel's PHPRC PHP Patch for EasyApache 4 - EasyApache 4 - cPanel Documentation Thank you. 0 -
allow_url_fopen is enabled and file_get_contents works with non-SSL. It looks like there was a problem with Apache MPM ITK. Load secured Webpage with file_get_contents from Webserver with the following EasyApache 4 Profiles All PHP Options + OpCache ok All PHP Options + ZendGuard ok cPanel Default ok cPanel Default + MPM ITK timed out cPanel Worker MPM ok 0 -
It looks like there was a problem with Apache MPM ITK.
This module is documented at: Apache Module: MPM ITK - EasyApache 4 - cPanel Documentation Per this document: The MPM ITK module is not compatible with the following modules: [LIST]- Mod Ruid2
- mod_userdir
- EAccelerator
- Mod suPHP
- CloudLinux's" feature (Home >> Security >> Leech Protection)
Thank you.0
Please sign in to leave a comment.
Comments
4 comments