2012年7月23日 星期一

Install MediaWiki

1. Install mysql, mysql-server, httpd
#yum install mysql mysql-server httpd

2. start mysql server
#service mysqld start

3. change mysql root password
#mysqladmin ping -u root password 'newpassword'
Enter password: (just press Enter)
mysqld is alive
(The mysql root password was changed to newpassword)


4. Download MediaWiki
http://www.mediawiki.org/wiki/Download

5. Extract to /var/www/html/wiki
#cd /var/www/html
#mkdir wiki
#copy all files intol wiki foler

6. using browser open http://127.0.0.1/wiki
follow the instruction step by step to install MediaWiki

(Note. If install on CentOS 5, must install php53-common and php53-mysql)

7. Backup, using the script
http://www.mediawiki.org/wiki/User:Megam0rf/WikiBackup
schedule the script on crontab weekly

http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
http://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup

2012年7月16日 星期一

install python setuptools (easy_install)

1. Download .egg from http://pypi.python.org/pypi/setuptools/ (according your python version)

2. using sh to execute .egg file