On my hosting provider, there is a slight tweak needed to get Grav to run on PHP 5.6. Here's the solution:
From cPanel > Select PHP Version, and from the PHP Selector page, set PHP 5.6 as the current version.
Now, I get this error from Grav:
Whoops \ Exception \ ErrorException (E_WARNING)
ini_set() has been disabled for security reasons
The function ini_set()
is considered unsafe, and is disabled by default. However, Grav will abort without it - perhaps it should be optional, but for now, you'll have to re-enable ini_set()
.
To enable the function, this is what I did:
- Create / edit
php.ini
in mypublic_html
folder, and add:ini_set = on
Depending on your level of access and hosting provider, you could also try either:
-
Create / edit
.htaccess
in yourpublic_html
folder, and add this line, replacingusername
with your cPanel username:suPHP_ConfigPath /home/username/public_html/
-
Or, if you have root access to
php.ini
in/usr/local/lib/
, you could directly removeini_set
from the exclusions. That is, look fordisable_functions =
and removeini_set
if it is present.