Manual:Simple Windows Apache Installation
From MediaWiki.org
| The content of this page has not been verified. Instructions written in this page have not been verified to be correct. |
| Installation guides |
|---|
| on FreeBSD |
| on GNU/Linux |
| - ALT Linux |
| - Damnsmalllinux |
| - Debian |
| - Fedora Core |
| - Gentoo |
| - Mandrake |
| - Red Hat Enterprise Linux |
| - Slackware |
| - SuSE 9.3 |
| - Ubuntu |
| on Mac OS X |
| on NetWare |
| on Solaris |
| - on Solaris 10 |
| - on Solaris 9 |
| on Windows |
| - Windows XP |
| - Windows Vista |
| - Windows Server 2000 |
| - Windows Server 2003 |
| - Newcomers guide |
| - Streamlined Guide |
| - Simple Windows/Apache Guide |
| - on a stick |
| - on WOS Portable |
| - on Uniform Server |
| - on Sourceforge.net |
Note: this page seems obsolete and should be wiped. If looking for installation instructions of Apache, MySQL, and MediaWiki, please refer to Manual:Streamlined_Windows_Install_Guide.
This rough but complete installation guide is based on Windows XP SP2.
Contents |
[edit] Download the required software:
The first thing you should do is to download the software the server will require. For ease of use, this page will assume you downloaded the binary releases, but if you want to customize your installation, you should download the source code of each program and compile it yourself.
| Software | Version | Download link |
|---|---|---|
| Apache | 1.3+ / 2.0+ / 2.2+ | http://httpd.apache.org/download.cgi |
| PHP | 5.1+[1] | http://www.php.net/downloads.php |
| MySQL | 4.0+ | http://dev.mysql.com/downloads/ |
| MediaWiki | 1.13.3[1] | http://www.mediawiki.org/wiki/download |
An easier alternative to downloading and installing individually the required packages is to use WAMP [1]. If you do so, you can skip to the Install MediaWiki step. There is one caveat: instead of unzipping MediaWiki into the Apache directory (the default option), unpack MediaWiki into the C:\WAMP\WWW folder (or the default www folder in your WAMP installation).
[edit] Install PHP
Run the PHP binary installer to C:\php. Ensure that the php.ini-dist file is in the C:\php directory. Copy C:\php\php.ini-dist to C:\php\php.ini. Use Windows Explorer to copy all files in the 'dlls' and 'sapi' subdirectories to C:\php.
[edit] Install Apache
- Run the apache installer (it has a .msi extension) and use the default options. This will set Apache2 up as a Windows Service.
- Locate C:\Program Files\Apache Group\Apache2\conf\httpd.conf and edit it using Wordpad (Notepad introduces a Byte-order mark character, so avoid using it if possible).
- Insert the following three lines after the line '### Section 1: Global Environment'
- LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
- LoadModule php5_module "c:/php/php5apache2.dll"
- Now launch Control Panel/Administrative Tools/Services and restart the Apache2 service.
- Create a new file called phptest.php in C:\Program Files\Apache Group\Apache2\htdocs. In it, type the following line:
- <?php phpinfo(); ?>
- Open your browser and navigate to http://localhost/phptest.php. You should see some php configuration settings.
[edit] Install MySQL
Unzip mysql-4.1.16-win32.zip and run the setup.exe program to install MySql using defaults. Enter a password for root and remember it.
[edit] Create a Wiki User with old-style password
(For more info on this issue see [2])
Launch Start Menu\MySQL\MySQL 4.1\Command Line Client. Enter the password you created earlier. Enter the following commands:
Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.16-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> CREATE DATABASE wikidb; Query OK, 1 row affected (0.01 sec)
mysql> GRANT ALL ON wikidb.* to wikiuser@localhost IDENTIFIED BY 'password'; Query OK, 1 row affected (0.01 sec)
mysql> SET PASSWORD FOR wikiuser@localhost = OLD_PASSWORD('password'); Query OK, 1 row affected (0.01 sec)
mysql> quit;
[edit] Install Media Wiki 1.13.3
Unzip mediawiki-1.13.3.tar.gz to C:\Program Files\Apache Group\Apache2\htdocs\mediawiki. (Ensure that index.php is directly underneath the mediawiki directory.
Now navigate your browser to: http://localhost/mediawiki/index.php
You should see the Media Wiki 1.13.3 Welcome Screen and the message You'll have to set the wiki up first!
Click on the link and enter a name for your wiki site, a password for the WikiSysop user and the password you entered in MySql for wikiuser. You should not need to enter the root password.
Hopefully you will see the Installation successful! message.
NOTE if you see an error message regarding "there is no database driver!". you will need to edit your php.ini.
1. Install the mysql extension.
2. Make sure ";" in front of extension=php_mysql.dll has been removed.
3. above that add this line -> extension_dir="C:\php\ext".
This must be added above the "extension=php_mysql.dll". This will set the php to look in the correct directory for the extensions.
4. Restart PC. (or restart the apache service)
Finally follow the instructions and copy C:\Program Files\Apache Group\Apache2\htdocs\mediawiki\config\LocalSettings.php to C:\Program Files\Apache Group\Apache2\htdocs\mediawiki\LocalSettings.php.
Now click the link http://localhost/mediawiki/index.php/Main_Page and you should see the magic words Wiki software successfully installed..

