Found and fixed, details see here: https://forums.fogproject.org/topic/14115/boot-php-permission-denied