User:Chris Tyler/Chris Tyler's Guide to Surviving OPS235 Assignment 2 with SELinux Enabled
< User:Chris Tyler
Revision as of 17:23, 9 April 2012 by Chris Tyler (talk | contribs) (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:
setenforce 0
- Once configured, copy the LocalSettings.php file from
/var/www/wiki/config
to/var/www/wiki
as directed by the message on the screen. - Switch SELinux to enforcing mode after MediaWiki configuration:
setenforce 1
diskfree.cgi Script
- The permissions on the file
/var/log/httpd/suexec.log
and the directory/var/log/httpd
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
httpd_user_script_exec_t
on your script - Permanently enable the SELinux boolean
httpd_enable_homedirs