For directories
[root@server]# find /var/www/vhosts/domain.com/httpdocs -type d -perm 777 -print
Set to 755:
root@server ]# find /var/www/vhosts/domain.com/httpdocs/ -type d -perm 777 -exec chmod 755 {} \;
For Files
[root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -print
Set to 644:
[root@server]# find /var/www/vhosts/domain.com/httpdocs -type f -perm 777 -exec chmod 644 {} \;