Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install MediaWiki

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

  Mediawiki has many extensions to improve the functions of Mediawiki. Here are the installation instructions for some practical extensions of Mediawiki, and the number of extensions will be updated continuously in the future. For more extensions, please refer to the official extension.

First, turn off the firewall and selinux to facilitate smooth testing

[root@mediawiki ~] # systemctl status firewalld [root@mediawiki ~] # systemctl stop firewalld [root@mediawiki ~] # systemctl disable firewalld [root@mediawiki ~] # cat / etc/sysconfig/selinux#disabled-No SELinux policy is loaded.SELINUX=disabled

2. Install Http and MariaDB from yum source:

[root@mediawiki ~] # vim / etc/yum.repos.d/ Mariadb.repos [MariaDB] name = MariaDBbaseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDBgpgcheck=1[root@mediawiki ~] # yum clean all [root@mediawiki ~] # yum makecache all

3. Install httpd and mariadb databases:

[root@mediawiki ~] # yum install httpd mariadb-server mariadb [root@mediawiki ~] # vim / etc/httpd/conf/httpd.conf modified configuration items are as follows: DocumentRoot "/ var/www"

Start the httpd service and mariadb service

[root@mediawiki ~] # systemctl enable mariadb [root@mediawiki ~] # systemctl enable httpd [root@mediawiki ~] # systemctl start httpd [root@mediawiki ~] # systemctl start mariadb

Install the database mysql:

1. Yum install mariadb-server mariadb 2.systemctl start mariadb 3.mysql_secure_installation 4.mysql-uroot-p

Enter the database to create the database:

Mysql-uroot-pMariaDB [(none)] > CREATE USER 'wiki'@'localhost' IDENTIFIED BY' 123456 MariaDB [(none)] > CREATE DATABASE wikidatabase;MariaDB [(none)] > GRANT ALL PRIVILEGES ON wikidatabase.* TO 'wiki'@'localhost';MariaDB [(none)] > FLUSH PRIVILEGES;MariaDB [(none)] > show databases;MariaDB [(none)] > SHOW GRANTS FOR' wiki'@'localhost';MariaDB [(none)] > exitBye

Fourth, install PHP

[root@mediawiki ~] # rpm-Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm[root@mediawiki ~] # rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm[root@mediawiki ~] # yum install-y php71w-fpm php71w-opcache php71w-cli php71w-gd php71w-imap php71w-mysqlnd php71w-mbstring php71w-mcrypt php71w-pdo php71w-pecl-apcu php71w-pecl-mongodb php71w-pecl-redis php71w-pgsql php71w-xml php71w-xmlrpc php71w-devel mod_php71w php71w-ldap

five。 Configure mediawiki:

[root@mediawiki ~] # cd / home [root@mediawiki ~] # wget http://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz[root@mediawiki ~] # cd / var/www [root@mediawiki ~] # tar-zxf / home/mediawiki-1.31.0.tar.gz [root@mediawiki ~] # ln-s mediawiki-1.31.0/ mediawiki [root@mediawiki ~] # chown-R apache:apache / var/www/mediawiki- 1.31.0 [root@mediawiki ~] # systemctl restart httpd

six。 Start installing MediaMewiki

Open the browser http://IP/mediawiki/index.php and start initializing the configuration:

1. Select language version font version

2: language settin

3: select the database type and configuration

4: set the database name, which is the same as you added in the database:

5: select InnoDB as the database engine:

6: set global name and add administrator:

7: start installing MediaWiki:

8: if there is no error message, you can install it in the following steps:

9: the configuration file generates LocalSettings.php, and the configuration file is placed under the index.php sibling directory, that is, the package mediawiki-1.31.0

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report