Thread:Project:Support desk/Changing user permissions with chmod went to 404 on all pages

Hello. After applying 'chmod 777 /var/www/html' (where /var/www/html is my Mediawiki folder) the uncached pages stopped opening. What have I done? Is it possible to fix it somehow?