一、关闭防火墙和selinux,便于顺利测试
[[email protected] ~]# systemctl status firewalld[[email protected] ~]# systemctl stop firewalld[[email protected] ~]# systemctl disable firewalld[[email protected] ~]#cat /etc/sysconfig/selinux#Disabled - No SElinux policy is loaded.SEliNUX=Disabled
二、yum源安装http和MariaDB:
[[email protected] ~]# vim /etc/yum.repos.d/Mariadb.repo[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[[email protected] ~]#yum clean all[[email protected] ~]#yum makecache all
三、安装httpd和mariadb数据库:
[[email protected] ~]# yum install httpd mariadb-server mariadb[[email protected] ~]#vim /etc/httpd/conf/httpd.conf修改配置项如下:documentRoot "/var/www"<Directory "/var/www"><Directory "/var/www">
启动httpd服务和mariadb服务
[[email protected] ~]# systemctl enable mariadb[[email protected] ~]# systemctl enable httpd[[email protected] ~]#systemctl start httpd[[email protected] ~]#systemctl start mariadb
安装数据库MysqL:
1、yum install mariadb-server mariadb 2.systemctl start mariadb 3.MysqL_secure_installation 4.MysqL -uroot -p
进入数据库创建数据库:
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
四、安装PHP
[[email protected] ~]#rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm[[email protected] ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm[[email protected] ~]# 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
五.配置mediawiki:
[[email protected] ~]#cd /home[@L_419_17@ ~]#wget http://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.0.tar.gz[[email protected] ~]# cd /var/www[[email protected] ~]#tar -zxf /home/mediawiki-1.31.0.tar.gz[[email protected] ~]# ln -s mediawiki-1.31.0/ mediawiki[[email protected] ~]# chown -R apache:apache /var/www/mediawiki-1.31.0[[email protected] ~]# systemctl restart httpd
六.开始安装MediaMewiki
打开浏览器http://IP/mediawiki/index.PHP,开始初始化配置:
1.选择语言版本字库版本
2:语言设置
3:选择数据库类型以及配置
4:设置数据库名称,与你在数据库添加一致:
5:选择数据库引擎为InnoDB:
6:设置全局名称和添加管理员:
7:开始安装Mediawiki:
8:没有出现错误信息,即可一下步安装:
9:配置文件生成LocalSettings.PHP,把配置文件放在index.PHP同级目录,也就是文件包mediawiki-1.31.0下面
总结以上是内存溢出为你收集整理的安装MediaWiki全部内容,希望文章能够帮你解决安装MediaWiki所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)