I have vps server and having full access over it.
I updated sudoers file and added user who is running my LAMP stack using
myuser ALL=(ALL:ALL) ALL