Changes

Jump to: navigation, search
diskfree.cgi Script
[[OPS235 Assignment 2]] can be tricky with SELinux enabled. Here are some tips to get you through...
== SELinux Tips ===== MediaWiki and SELinux ===
* Switch SELinux to permissive mode during MediaWiki configuration: <code>setenforce 0</code>
* 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:
chown apache:apache /var/log/httpd/suexec.log
chmod 0755 /var/log/httpd
chmod 0600 0660 /var/log/httpd/suexec.log* Use a SELinux file context of <code>httpd_user_script_exec_t</code> on your <code>diskfree.cgi</code> script* Permanently enable the SELinux boolean <code>httpd_enable_homedirs</code>using the <code>setsebool</code> command with appropriate options. == General Tips == * If Apache is not doing what you expect, look in the log files in <code>/var/log/httpd</code>* Check your clock. If you clock is off, the error message times listed in /var/log/httpd may be wrong too.

Navigation menu