大漠孤狼 发表于 2014-2-16 00:10:55

CentOS 5.6搭建mediawiki


yum -y install httpd mysql mysql-server php php-mysql gd gettext
/etc/init.d/httpd restart
/etc/init.d/mysqld restart
mysqladmin -u root password '123456'
mysql -u root -p
mysql>use mysql;
mysql>flush privileges;
测试PHP安装成功:
vi /var/www/html/info.php
mkdir /wiki
1、下载mediawiki程序:
wget

http://dumps.wikimedia.org/mediawiki/1.16/mediawiki-1.16.2.tar.gz
tar zxvf
mediawiki-1.16.2.tar.gz
mv mediawiki-1.16.2
/var/www/html/wiki
2、下载FCKeditor(可视化编辑器)
wget

http://mediawiki.fckeditor.net/nightly/svn/mediawiki_fckeditor_ext_N.tar.gz
tar zxvf
mediawiki_fckeditor_ext_N.tar.gz
cd extensions/
mv FCKeditor/
/var/www/html/wiki/extensions/
3、下载eaccelerator(缓存工具)
wget
http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
tar jxvf
eaccelerator-0.9.6.1.tar.bz2
/usr/bin/phpize
./configure
–enable-eaccelerator=shared
–with-php-config=/usr/bin/php-config
make
make install
cp
eaccelerator.ini /etc/php.d/
登陆:http://ip/wiki/
页: [1]
查看完整版本: CentOS 5.6搭建mediawiki

BlueHost美国主机优惠码