SELinux

To install MediaWiki on a system running SELinux the following additional steps must be performed:


 * chcon -R -t httpd_user_content_t /path/to/mediawiki_install

After building the PHP fileinfo extension:
 * chcon -t httpd_sys_script_exec_t /usr/lib/php/modules/fileinfo.so

Any additional files which will be execed by apache must be httpd_user_script_exec_t (not including PHP files). Files which are httpd_*_script_exec_t may not be written to by the apache process. Ideally the MediaWiki executable (PHP) files should all be set httpd_user_script_exec_t but this is not required by the current SELinux policy.

Other handy SELinux tricks
audit2allow is a perl script that interprets the selinux errors and constructs the right rules to overcome various problems.

/usr/bin/audit2allow -i /var/log/messages

It outputs the lines you need to add to your policies to permit things that are reported as failing.

When all else fails, try this

man setenforce