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.iniin mypublic_htmlfolder, and add:ini_set = on
Depending on your level of access and hosting provider, you could also try either:
-
Create / edit
.htaccessin yourpublic_htmlfolder, and add this line, replacingusernamewith your cPanel username:suPHP_ConfigPath /home/username/public_html/ -
Or, if you have root access to
php.iniin/usr/local/lib/, you could directly removeini_setfrom the exclusions. That is, look fordisable_functions =and removeini_setif it is present.