为了记录遇到过的坑,这里是基于Apache2服务器
1、安装apr-1.7.0
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.7.0.tar.gz
tar xvf apr-1.7.0.tar.gz
cd apr-1.7.0
./configure --prefix=/usr/local/apr
make && make install
2、安装apr-util-1.6.1
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.gz
tar xvf apr-util-1.6.1.tar.gz
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make && make install
3、安装pcre-8.43
wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz
tar zxvf pcre-8.43.tar.gz
cd pcre
./configure --prefix=/usr/local/pcre
4、安装httpd
wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.41.tar.gz
tar zxvf httpd-2.4.41.tar.gz
./configure --prefix=/usr/local/apr2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make && make install
5、下载mediawiki,解压放到/usr/local/apr2/htdocs目录下
6、安装php7
下载解压
./configure --with-apxs2=/usr/local/apr2/bin/apxs --enable-mbstring --with-mysqli=mysqlnd
make && make install
7、安装cmake
8、安装mariadb
9、通过网页安装mediawiki,将得到的LocalSettings.php文件放到mediawiki文件下
来源:CSDN
作者:Spirit_6275
链接:https://blog.csdn.net/Spirit_6275/article/details/103635150