/var/lib/mediawiki/extensions/LanguageSelector is in mediawiki-extensions-base 3.6.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/mediawiki-extensions/base/LanguageSelector
/usr/share/mediawiki-extensions/base/LanguageSelector