Creating Online Web Presences Since 2000
With our Nationwide Services – We Build With and Care
We develop in ALL cities and states and are in 62 different countries. Let us know what you need!
Running WHMCS on a WHM/cPanel server stack that includes LiteSpeed, Imunify360, and CloudLinux with CageFS can sometimes produce unexpected results. One issue we encountered was that WHMCS reported allow_url_fopen
as Off even though every global and local php.ini
was correctly set to On. This prevented WHMCS from performing automatic updates.
Inside WHMCS’s system health check, allow_url_fopen
showed as Off. PHP CLI and site-level phpinfo() both reported On. This discrepancy meant WHMCS refused to run automatic updates. Searching through php.ini
, .user.ini
, and additional PHP include files revealed no setting forcing it Off. Yet, the WHMCS PHP runtime continued to display it disabled.
A deep scan uncovered that Imunify360 was injecting PHP hardening values through its LiteSpeed vendor configuration. Specifically, the file:
/etc/apache2/conf.d/modsec_vendor_configs/imunify360-full-litespeed/php_data
contained an entry for allow_url_fopen
which LiteSpeed interpreted as disabled at runtime.
Attempts to enable allow_url_fopen
through:
php.ini
and .user.ini
overrides/opt/cpanel/ea-php83/root/etc/
all failed. Imunify360 does not expose a direct toggle for allow_url_fopen
outside its PHP Selector, and even that setting had no effect.
The reliable solution was to manually override the Imunify360 vendor configuration by applying a persistent server-level directive.
Edit the following file:
/etc/apache2/conf.d/includes/post_virtualhost_global.conf
Insert this directive:
php_admin_value allow_url_fopen On
Apply the changes with these commands:
/scripts/ensure_vhost_includes --all-users
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
After restarting LiteSpeed, WHMCS phpinfo() correctly displayed allow_url_fopen
as On. Automatic updates resumed functioning as expected.
If WHMCS shows allow_url_fopen
as Off despite every php.ini being set to On, and your server stack includes LiteSpeed and Imunify360, check the php_data
file under Imunify’s vendor configs. Applying a manual php_admin_value
override in post_virtualhost_global.conf
ensures your settings persist across Imunify updates and restores WHMCS automatic update functionality.
#WHMCS #WebHosting #cPanel #PHPSecurity #WebDevelopment
With our Nationwide Services – We Build With and Care
We develop in ALL cities and states and are in 62 different countries. Let us know what you need!
Comments