Install & configure MediaWiki

Modify /usr/local/zy-pkgs/gui/mediawiki/includes/installer:
	search:	protected static function getPossibleBinPaths() {
	patch:	return array('/ffp/sbin', '/ffp/bin', '/ffp/opt/ejre1.7.0_60/bin');
Preinstalation:
	# mediawiki source files modifications
	cd /usr/local/zy-pkgs/gui/mediawiki
	find . -type f \( -name "*.py" -o -name "*.sh" -o -name "*.php" -o -name "*.pl" \) -exec sed -i s/"\/bin\/bash"/"\/ffp\/bin\/bash"/ {} \;
	find . -type f \( -name "*.py" -o -name "*.sh" -o -name "*.php" -o -name "*.pl" \) -exec sed -i s/"\/usr\/bin"/"\/ffp\/bin"/ {} \;
	sed -i s/"\/bin\/bash"/"\/ffp\/bin\/bash"/ maintenance/storage/make-blobs
	sed -i s/"\/usr\/bin"/"\/ffp\/bin"/ maintenance/mwjsduck-gen
	sed -i s/"\/usr\/bin"/"\/ffp\/bin"/ maintenance/hiphop/run-server
	sed -i s/"\/usr\/bin"/"\/ffp\/bin"/ maintenance/Doxyfile
	#find . -type f \( -name "*.py" -o -name "*.sh" -o -name "*.php" -o -name "*.pl" \) -exec sed -i s/"\/ffp\/ffp"/"\/ffp"/ {} \;
	# Alternative PHP Cache (APC) installation
	cd /ffp/lib/php
	pear install CodeGen_PECL
	php peclcmd.php install APC
	php peclcmd.php install intl
	# mysql database
	mysql -p
	mysql> CREATE DATABASE wiki CHARACTER SET utf8;
	mysql> GRANT ALL ON wiki.* TO 'wiki'@'localhost' IDENTIFIED BY 'wiki' WITH GRANT OPTION;
	mysql> FLUSH PRIVILEGES;
	mysql> exit;
Configuration:
	mysql account: wiki/wiki
	Administrator account: root/xxx___
	Save generated LocalSettings.php to /i-data/md0/seagate-ext4/ProjectsNew/nsa310-config/trunk/ffp/home/root/temp.
	cp -v /i-data/md0/seagate-ext4/ProjectsNew/nsa310-config/trunk/ffp/home/root/temp/LocalSettings.php /usr/local/zy-pkgs/gui/mediawiki
See also:
	http://www.mediawiki.org/wiki/Manual:LocalSettings.php
	The LocalSettings.php file provides basic configuration settings (based on the DefaultSettings.php file) of a MediaWiki installation. You should take your time to review the settings in this file. The file is usually generated by the web-based MediaWiki installer but you can tweak the parameters, possibly in concert with Apache settings. 
	/usr/local/zy-pkgs/gui/mediawiki/includes/DefaultSettings.php

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.