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
個人在學習Linux過程當中的個人筆記,提供個人及有需要的人查閱,若有錯誤歡迎提供指正,謝謝。 This Blog recorded notes about my learning Linux and provides myself and others reference. If there are any incorrect information, welcome to leave a message to correct me, Thanks.
2012年7月23日 星期一
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
2. using sh to execute .egg file
2012年7月12日 星期四
replace new line (\n) using sed
sed ':a;N;$!ba;s/\n/ /g' filereference:
http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n
訂閱:
文章 (Atom)