linux environment using xampp install MediaWiki

1, download and install xampp

Download xampp

In the download page to download.

Placed in the appropriate directory

Will xampp-linux-x64-5.6.3-0-installer.runcopy the files to the deployment of the machine /rootdirectory

installation

[root@vm-xa66bomoy2e ~]# cd /root
[root@vm-xa66bomoy2e ~]# chmod +x xampp-linux-x64-5.6.3-0-installer.run
[root@vm-xa66bomoy2e ~]# ./xampp-linux-x64-5.6.3-0-installer.run

Start xampp

The default installation directory is xampp/opt/lampp

[root@vm-xa66bomoy2e ~]# /opt/lampp/lampp start

You can see apache, mysql, ftp services start up OK

Access page

Access http://IP地址/xampp/index.php, error, found it impossible to access the page out of the machine, modify the configuration file

[root@vm-xa66bomoy2e lampp]# vim /opt/lampp/etc/extra/httpd-xampp.conf 

The following content

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

Changed

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

That is, removeRequire local

Restart Service

[root@vm-xa66bomoy2e lampp]#  /opt/lampp/lampp restart
Restarting XAMPP for Linux 5.6.3-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

View page again

It can be found in the OK

2, install mediawiki

Download mediawiki archive

To the official website to download to, because we installed php version 5.6, so only download this version supports the highest version mediawiki, namely1.26.4

Placed in the appropriate directory

Will mediawiki-1.26.4.tar.gzcopy the files to the deployment of the machine /rootdirectory

Install mediawiki

[root@vm-xa66bomoy2e ~]# cd root
[root@vm-xa66bomoy2e ~]# tar xvf mediawiki-1.26.4.tar.gz 
[root@vm-xa66bomoy2e ~]# mkdir /opt/lampp/htdocs/wiki
[root@vm-xa66bomoy2e ~]# mv mediawiki-1.26.4/*  /opt/lampp/htdocs/wiki/

Access the page to install

Installation of mediawiki access the home page, that is http://IP地址/wiki, the following operations can be carried out under the guidance of.

Guess you like

Origin www.cnblogs.com/laolieren/p/install_mediawiki_with_xampp_in_linux.html