Hi all,
Here's another howto for SME8 only...
## DEPENDENCIES
yum install ImageMagick audit-libs-python chkfontpath gd ghostscript ghostscript-fonts lcms libFS libXfont libXpm libXt libcroco libfontenc librsvg2 libselinux-python libselinux-utils libsemanage libwmf php-pgsql pkgconfig policycoreutils ttmkfdir urw-fonts xorg-x11-font-utils xorg-x11-xfs desktop-file-utils psutils tetex tetex-dvips tetex-fonts tetex-latex --enablerepo=* -y
## INSTALL
cd /opt
wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.1.tar.gz
tar -xzf mediawiki-1.15.1.tar.gz
mv /opt/mediawiki-1.15.1 /opt/mediawiki
rm -f /opt/mediawiki-1.15.1.tar.gz
## FIX SECURITY
chown -R root:root /opt/mediawiki/
chown root:www /opt/mediawiki/images
chmod 777 /opt/mediawiki/config
chmod 775 /opt/mediawiki/images
## APACHE CONFIG
cat > /etc/e-smith/templates/etc/httpd/conf/httpd.conf/98mediawiki << EOF
# MediaWiki
Alias /mediawiki /opt/mediawiki
#Alias /wiki /opt/mediawiki/index.php
<Directory /opt/mediawiki>
AddType application/x-httpd-php .php .php3 .phtml
Options FollowSymLinks
order deny,allow
deny from all
allow from all
php_admin_value open_basedir /opt/mediawiki/:/tmp:/usr/bin/
</Directory>
<Directory /opt/mediawiki/includes>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/languages>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/maintenance>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/maintenance/archives>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/math>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/serialized>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/t>
order deny,allow
deny from all
</Directory>
<Directory /opt/mediawiki/tests>
order deny,allow
deny from all
</Directory>
EOF
## APPLY CHANGES
expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86httpd-e-smith sigusr1
## SETUP WEB APP
http://yourdomain.com/mediawiki/config
You will need MySQL's ROOT password (for SuperUser config), to retrieve it:
cat /root/.my.cnf
## FINISH SETUP
mv /opt/mediawiki/config/LocalSettings.php /opt/mediawiki/
chown root:root /opt/mediawiki/LocalSettings.php
chmod 644 /opt/mediawiki/LocalSettings.php
chmod 770 /opt/mediawiki/config
sed -i 's/wgEnableUploads = false/wgEnableUploads = true/g' /opt/mediawiki/LocalSettings.php
sed -i 's/wgUseTeX = false/wgUseTeX = true/g' /opt/mediawiki/LocalSettings.php
sed -i 's/# $wgShellLocale = "en_US.UTF-8"/\$wgShellLocale = "fr_FR.UTF-8"/g' /opt/mediawiki/LocalSettings.php
Enjoy!