Difference between revisions of "Tung mediawiki conf"

From CDOT Wiki
Jump to: navigation, search
(Blanked the page)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<b><big>Instruction</big></b>
+
 
#Install php: <b><code><font color=green >yum install php</font></code></b>
 
#Install MediaWiki, downloaded size 72M, installed size 209 M: <b><code><font color=green >yum install mediawiki</font></code></b>
 
#Edit MediaWiki's httpd configuration file: <b><code><font color=purple >/etc/httpd/conf.d/mediawiki.conf.</font></code></b> Uncomment the first two Alias lines
 
#Restart Apache server: <b><code><font color=green >service httpd restart</font></code></b>
 
#Access <b><code>http://localhost/wiki</code></b>from a brower. The welcome page should display.
 
#Before clicking the setup link, you need to add context <code>httpd_sys_script_rw_t </code>type to <code>/var/www/wiki/config</code> directory. It allows MediaWiki to read and write files inside config directory. Otherwise, crazy selinux will block the write process, and you will get error message “Can't write config file, aborting”.
 
#*Add context:<b><code><font color=green > semanage fcontext -at  httpd_sys_script_rw_t "/var/www/wiki/config(/.*)?" </font></code></b>
 
#*Apply context: <b><code><font color=green >restorecon -vRF "/var/www/wiki/config" </font></code></b>
 

Latest revision as of 23:12, 30 July 2011