I think "permission denied " means that operating system is not permitting any file to be execute on the server. I have installed raspbain jessie lite opearting system and apache server. When I try to execute php program on apache server. it give permission denied error. That mean's raspbain operating system doesn't give permission to execute any php file on apache server.
I have seen that we should not give the Sudo Permission to the user if we give sudo permission to user it would be a massive security hole
We are executing the php program on the server, Is this the only reason. If I execute another program like python then Do I still need permissions?