wiki安装备忘录

发表于:2007-06-21来源:作者:点击数: 标签:
PHP +mysql+wiki 安装步骤 1:Mysql # rpm -ivh MySQL *.rpm # service mysql start # mysqladmin -u root password 'password' //修改密码为password 2:PHP # cd /usr/local/src # tar xvfj php-4.3.10.tar.bz2 # cd php-4.3.10 #./configure --with-apxs2

   
  PHP+mysql+wiki
安装步骤
1:Mysql
# rpm -ivh MySQL*.rpm
# service mysql start
# mysqladmin -u root password 'password' //修改密码为password

2:PHP
# cd /usr/local/src

# tar xvfj php-4.3.10.tar.bz2
# cd php-4.3.10
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
# make
# make install
安装完成的,修改apache的配置文件httpd.conf
在相应的位置加入以下语句:
AddType application/x-httpd-php .php
DirectoryIndex index.html index.php
重启apache即可:
service httpd restart
测试PHP
编写 info.php文件,内容如下:
<?php
echo phpinfo();
?>
将其存放在apache的文档路径下,在浏览器中输入:
http://127.0.0.1/info.php

3、mediawiki
# cd /usr/local/apache2/htdocs/
# tar xzvf mediawiki-1.4beta3.tar.gz
# cd mediawiki-1.4beta3
# chmod a+w config

4、在mysql中建立wiki数据库
# mysql -uroot -p
# mysql>create database wikidb;
# mysql>grant all on wikidb.* to wikidb@localhost identified by 'password';
# mysql>flush privileges;
# mysql>exit

5、配置wiki
http://127.0.0.1/wiki
添好各项信息在../apache2/htdocs/wiki/config目录下生成LocalSettings.php文
# cp LocalSettings.php ../
# mv config config.bak
测试http://http://127.0.0.1/wiki
一切ok!!

原文转自:http://www.ltesting.net