Windows installation Appache 2.2+php 5.3+mysql 5.1+mediawiki 1.6

Source: Internet
Author: User
Tags sqlite sqlite database mediawiki mysql database phpmyadmin linux

The company project needs to install a wiki as an internal communication tool, start installing on a Linux machine, adopt the SQLite database, then migrate to another Linux machine and use the MySQL database for the reason of the large amount of data and the failure of Linux machine. When SQLite blob data migrated to MySQL during data migration, there was a special character error. I specially wrote a tool to export from dqlite database to MySQL database; recently because the wiki's IP segment cannot be accessed by another network segment, Then PM decided to migrate the wiki to another machine, which happens to be a Windows machine ... Alas, the demand is changeable ...

1, Software Preparation:

Appache2.2:

Http://httpd.apache.org/download.cgi#apache22

Http://www.skycn.com/soft/1218.html

PHP5.3:

http://windows.php.net/download/

MySql5.1:

Http://www.mysql.com/downloads/mysql/5.1.html

http://www.mysql.com/downloads/workbench/

Wikimedia:

Http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.2.tar.gz

2, Installation Preparation: Create a directory

D:\WWW------Site Home Directory

D:\www\wiki--------wiki Pages directory

D:\appache2--------Appache2 installation directory

installation directory for D:\PHP5--------PHP5

installation directory for d:\database\mysql\-------MYSQL5

When installing APPACHE2,PHP5,MYSQL5, select the above directory as the installation directory

3, install Appache2.2

Double-click the installation file, select the installation directory, and follow the steps to install it.

Open the Appache2 profile D:\appache2\conf\httpd.conf open the following key and modify it to:

Listen 8080

ServerRoot "D:/appache2"

DocumentRoot "D:/www"

AllowOverride None to allowoverride all

<directory "D:/www" >

......

</Directory>

<ifmodule dir_module>

DirectoryIndex index.php index.html default.php default.html index.htm

</IfModule>

Add below the # LoadModule Foo_module modules/mod_foo.so:

Phpinidir "d:/php5/"

LoadModule php5_module "D:/php5/php5apache2_2.dll"

AddType application/x-httpd-php. php

4, install PHP5

Double-click the PHP5 installation file, select the installation directory and the Appache2 directory, and follow the steps to install it.

Open the PHP5 configuration file D:\php5\php.ini file to open and modify the following items to:

Extension_dir = "D:/php5/ext"

Cgi.force_redirect = 0

Extension=php_mbstring.dll (wide character, used to support phpMyAdmin, avoid character display problems)

Extension=php_mcrypt.dll (for support phpMyAdmin)

Extension=php_mysql.dll (MySQL module, after the open access to the MySQL database)

Extension=php_mysqli.dll (MySQL module)

5, install MySql5.1

Double-click the MYSQL5 installation file, select the installation directory and configure the appropriate configuration to complete the installation process. Colleagues install Mysqladministrator management tools.

Set the root user password, create a user as a wiki user, and set the password.

6, install WikiMedia1.6:

Compress the downloaded compression pack into the D:\www\wiki

Open Browser access:

http://127.0.0.1:8080/wiki/

Follow the page prompts to enter the configuration information to install the wiki.

If you have a backup database, you can restore the database after you install the wiki.

Since then, the wiki has been successfully installed. You can access the wiki by accessing the Web site:

http://(IP): 8080/wiki/

This article from the "Small Hebebe Technical Space" blog, please be sure to keep this source http://babyhe.blog.51cto.com/1104064/515394

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/web/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.