最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL

来源:动视网 责编:小采 时间:2020-11-09 19:16:05
文档

HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL

HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL:CentOS MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have t
推荐度:
导读HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL:CentOS MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have t
 CentOS

MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have terabytes of content and hundreds of thousands of hits per second.Because Wikipedia is one of the world’s largest websites, achieving scalability through multiple layers of caching and database replication has also been a major concern for developers. Wikipedia and other Wikimedia projects continue to define a large part of the requirement set for MediaWiki. I’m describing about the installation of mediawiki on a CentOS server.

Download mediawiki

Download mediawiki into /usr/local/src

#cd /usr/local/src

#wget http://releases.wikimedia.org/mediawiki/1.22/mediawiki-1.22.3.tar.gz

Extract mediawiki and move into DocumentRoot

#tar xvzf mediawiki-1.22.3.tar.gz

#mv mediawiki-1.22.3 /var/www/html/mediawiki

Create Database and User in mysql

Enter into mysql as root

You need to enter mysql root password to enter in to mysql.

#mysql -u root -p

Enter password:

You will get mysql command terminal.We need to create Database, User for mediawiki.

I’m going to set database name, username , and password as ‘mediawiki’.You can change it as per your wish.

Create database

mysql> create database mediawiki;

Create User

mysql> create user mediawiki@localhost;

Set password for mysql user

mysql> set password for mediawiki@localhost = password (‘mediawiki’);

Allow Grant privileges to the user

mysql>GRANT ALL PRIVILEGES ON mediawiki.* to mediawiki@localhost identified by ‘mediawiki’;

Flush privileges

mysql> flush privileges;

Now all the Activities in mysql is completed.You can simply logout from the mysql using quit

mysql>quit;

Set Ownership and permission in DocumentRoot

We need to set the Owner and group of mediawiki as apache.Set 755 permission to the /var/www/html/mediawiki folder

#chown -R apache:apache /var/www/html/mediawiki

#chmod -R 755 /var/www /html/mediawiki

Installation of mediawiki from the browser.

You can start installation of mediawiki via browse http://Public_IP/mediawiki

You will get a page like localsettings.php not found.Click on the setup the wiki

There is a probability of get a blank page .It is due to the missing of pfp-dom.You can install it through the following steps.

#yum install php-xml

#service httpd restart

Now the problem will solve and you will get a language setting page.You can set language as per your wish

Click Continue, You will get a Welcome page of wediawiki.

Again Click continue .You will get Connect to database page.We are using mysql as database.So mark mysql and fillup our database details.

Click continue. You will get a database settings page.You don’t need to change anything on this page.

Click Continue.You will get a page to Name the mediawiki, and Setup the admin account. Then simply click continue on next two pages.You will get a installation complete page.

Now you will get a LocalSettings.php file.You need to put that file into /var/www/html/mediawiki.Installation complete and you can enter into your mediawiki now .

You are successfully installed mediawiki now.You can use meidawiki to share valuable information to the world.

文档

HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL

HowtoInstallMediawikionaCentOSServerwithScreenshots_MySQL:CentOS MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have t
推荐度:
标签: media to mysql
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top