I was working on a customer's server and had problems executing PHP code. I checked on the CPannel the errors and it was just a permissions error.
The PHP files had to be set with non writable permissions for groups.
In my case setting the permissions to 644 got everything working.