Apache2
While in document root and in terminal run these commands:
chown www-data:www-data -R * find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;
Litespeed
While in document root and in terminal run these commands:
chown nobody:nogroup -R * find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \;