add apache2 permission to read folder different from www code example Example: what permissions should var/www/html have sudo chown -R www-data:www-data /var/www/html