Changes

Jump to: navigation, search
Created page with 'OPS235 Assignment 2 can be tricky with SELinux enabled. Here are some tips to get you through... == MediaWiki and SELinux == * Switch SELinux to permissive mode during Medi…'
[[OPS235 Assignment 2]] can be tricky with SELinux enabled. Here are some tips to get you through...

== MediaWiki and SELinux ==

* Switch SELinux to permissive mode during MediaWiki configuration: <code>setenforce 0</code>
* Once configured, copy the LocalSettings.php file from <code>/var/www/wiki/config</code> to <code>/var/www/wiki</code> as directed by the message on the screen.
* Switch SELinux to enforcing mode after MediaWiki configuration: <code>setenforce 1</code>

== diskfree.cgi Script ==

* The permissions on the file <code>/var/log/httpd/suexec.log</code> and the directory <code>/var/log/httpd</code> may need to be adjusted:
touch /var/log/httpd/suexec.log
chown apache:apache /var/log/httpd/suexec.log
chmod 0755 /var/log/httpd
chmod 0600 /var/log/httpd/suexec.log
* Use a SELinux file context of <code>httpd_user_script_exec_t</code> on your script
* Permanently enable the SELinux boolean <code>httpd_enable_homedirs</code>

Navigation menu