Problem - with file and directory permissions on server

Errors on sever: index.php is writable by group
cannot execute file ... permission is denied

Solution:
All files on server should have chmod 644, and directories 755

for files type:
chmod -R 644 *
for directories type:
find . -type d -exec chmod 755 {} \;

May 28, 2018