Topic on Project:Support desk

What are the recommended file and directory permissions for MediaWiki?

2
Tommyheyser (talkcontribs)

New install of MediaWiki 1.28 on Ubuntu 16.04. Permissions for /var/www/html set to 755, owned by me user:www-data.

Did a Download from Git install, before and after doing composer install, the file and directory permissions are readable and writable but not executable for group. Should I set them to 755 manually?

AhmadF.Cheema (talkcontribs)

In your MediaWiki directory, the following SSH commands should work:


find . -type f -exec chmod 644 {} \;

find . -type d -exec chmod 755 {} \;
Reply to "What are the recommended file and directory permissions for MediaWiki?"