Open main menu

CDOT Wiki β

Changes

Tung mediawiki conf

100 bytes added, 21:56, 27 July 2011
no edit summary
#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 <b>(figure Figure 1)</b>.#Before clicking the setup link, you need to add context <font color=brown ><code>httpd_sys_script_rw_t </code></font>type to <font color=brown ><code>/var/www/wiki/config</code></font> 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 <font color=red>“Can't write config file, aborting”.</font><b>(Figure 2)</b>
#*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>
figure <big>Figure 1</big>
[[File:Wiki setup xyz.png|left]]
 
 
 
 
<big>Figure 2</big>
[[File:Wiki config error xyz.png |left]]
1
edit