Mediawiki installation
Environment: CentOS X64
a. install php: yum install php php-mysql php-xml
b. install extension: yum install pcre-devel php-pecl-apc
2. MYSQL
a. install mysql: yum install mysql-server
b. start mysql service: service mysqld start
c. run install script: /usr/bin/mysql_secure_installation
d. create user and database:
create database wikidb;
create database wikidb;
grant index, create, select, insert, update, delete, alter, lock tables on wikidb.* to 'wikiuser'@'localhost' identified by 'password';
3. Mediawiki
a. download package: http://www.mediawiki.org/wiki/MediaWiki
b. copy to /var/www/
c. uncompress: tar xvf <package>
d. folder rename to wiki
4. Httpd
a. install httpd: yum install httpd
b. create config file: /etc/httpd/conf.d/httpd-vhost.conf
<VirtualHost *:80>
ServerName wiki
DocumentRoot /var/www/wiki
</VirtualHost>
c. restart httpd service: service httpd restart
d. check to verify
5. Following the guide to install the mediawiki
Comments
Post a Comment