Before running Magento on server we need to set several permission on server otherwise the site will give Internal server error due to insufficient permission of folders and files.