Build a mediawiki site on your own computer
2006-03-23 12:03
525 查看
This computer's operation system is Windows 2000 Pro. First, you should build the web serverice (apache+php) and the database (mysql) environment. The follows are the details what I did:
1. Install apache server
a) Download The version I used is apache_2.0.55-win32-x86-no_ssl
b) After completing installation, you should edit http.conf, which in the folder of apache home, to avoid collision other software like IE. Change the value of Listen to the number if you like, I change it to 8212. Ps, what we do is just a local test, it need not edit the IP address before the Listen port number.
c) Test. Restart the apache service. Enter http://localhost:8212 to your browser. If the test page displays, congratulations, install successful! If not, please turn to cmd shell and change directory to %apache_home%/bin, run these instructions: apache –k shutdown, apache –k install, apache –k start. (Ref)
2. Install php5 (on the manual way)
a) Download The version I used is php-5.1.2-Win32.
b) Unzip php-5.1.2-Win32.zip, the directory I release is E:/caoyi/php5, but you could release the package to any directory. Rename php.ini-recommended to php.ini (make a backup before doing so!).
c) Add php5 as a model to apache. Edit httpt.conf, add the following lines:
LoadModule php5_module "E:/caoyi/php5/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "E:/caoyi/php5"
d) Edit php.ini. Add these lines:
extension_dir = "E:/caoyi/php5/ext"
extension=php_mysql.dll
e) Test. The follow is my test page's code
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "test";
?>
</body>
</html>
Save it to E:/caoyi/site_php_test as index.php. Shutdown apache service, edit httpd.conf. Add the following lines:
Alias /homepage "E:/caoyi/site_php_test"
<Directory "E:/caoyi/site_php_test">
Options Indexes FollowSymLinks –ExecCGI
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
Sart apache service, input http://localhost:8212/homepage in your browser to see the test page.
3. Install MySql. The url for download is http://xbol.driversky.com/down/mysql-5.0.19-win32.zip. Using Windows Installer, only 'click next' needed.
4. Install media wikii
a) Download Theversion I used is mediawiki-1.5.7.
b) Unzip. I release it to E:/caoyi/wiki
c) Add these lines to <apache_home>/httpt.conf:
Alias /wiki "E:/caoyi/wiki"
<Directory "E:/caoyi/wiki">
Options Indexes FollowSymLinks –ExecCGI
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
d) Input http://localhost:8212/wiki in your browser, click "Install", fill the blanks.
e) Move the <mediawiki_home>/conf/localsettings.php to its superdirectory.
f) Input http://localhost:8212/wiki in the browser, a personal wiki system birth.
Important Refences
Mediawiki的安装 (zh)
安装MediaWiki (zh)
PHP 手册(chm格式版本下载)(zh)
PHP Manual (en)
Apache HTTP Server 2.0 安装和配置记录 (zh)
1. Install apache server
a) Download The version I used is apache_2.0.55-win32-x86-no_ssl
b) After completing installation, you should edit http.conf, which in the folder of apache home, to avoid collision other software like IE. Change the value of Listen to the number if you like, I change it to 8212. Ps, what we do is just a local test, it need not edit the IP address before the Listen port number.
c) Test. Restart the apache service. Enter http://localhost:8212 to your browser. If the test page displays, congratulations, install successful! If not, please turn to cmd shell and change directory to %apache_home%/bin, run these instructions: apache –k shutdown, apache –k install, apache –k start. (Ref)
2. Install php5 (on the manual way)
a) Download The version I used is php-5.1.2-Win32.
b) Unzip php-5.1.2-Win32.zip, the directory I release is E:/caoyi/php5, but you could release the package to any directory. Rename php.ini-recommended to php.ini (make a backup before doing so!).
c) Add php5 as a model to apache. Edit httpt.conf, add the following lines:
LoadModule php5_module "E:/caoyi/php5/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "E:/caoyi/php5"
d) Edit php.ini. Add these lines:
extension_dir = "E:/caoyi/php5/ext"
extension=php_mysql.dll
e) Test. The follow is my test page's code
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "test";
?>
</body>
</html>
Save it to E:/caoyi/site_php_test as index.php. Shutdown apache service, edit httpd.conf. Add the following lines:
Alias /homepage "E:/caoyi/site_php_test"
<Directory "E:/caoyi/site_php_test">
Options Indexes FollowSymLinks –ExecCGI
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
Sart apache service, input http://localhost:8212/homepage in your browser to see the test page.
3. Install MySql. The url for download is http://xbol.driversky.com/down/mysql-5.0.19-win32.zip. Using Windows Installer, only 'click next' needed.
4. Install media wikii
a) Download Theversion I used is mediawiki-1.5.7.
b) Unzip. I release it to E:/caoyi/wiki
c) Add these lines to <apache_home>/httpt.conf:
Alias /wiki "E:/caoyi/wiki"
<Directory "E:/caoyi/wiki">
Options Indexes FollowSymLinks –ExecCGI
DirectoryIndex index.php
Order allow,deny
Allow from all
</Directory>
d) Input http://localhost:8212/wiki in your browser, click "Install", fill the blanks.
e) Move the <mediawiki_home>/conf/localsettings.php to its superdirectory.
f) Input http://localhost:8212/wiki in the browser, a personal wiki system birth.
Important Refences
Mediawiki的安装 (zh)
安装MediaWiki (zh)
PHP 手册(chm格式版本下载)(zh)
PHP Manual (en)
Apache HTTP Server 2.0 安装和配置记录 (zh)
相关文章推荐
- 【转】Build Your Own Oracle RAC 11g Cluster on Oracle Linux and iSCSI
- Beginning Microsoft Office Live: Build Your Own Web Site Quickly and Easily
- Build Your Own Oracle RAC 11g Cluster on Oracle Linux and iSCSI
- Build Your Own Oracle RAC Cluster on Oracle Enterprise Linux and iSCSI
- Build Your Own RAC Cluster on Linux and FireWire
- 本周技术关注[面向webapps运维]:Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- Develop your own module on Site Engine
- Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- Build Your Own Ruby on Rails Web Applications [ILLUSTRATED]
- Build your own PHP on Windows
- Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- Build Your Own ASP.NET 2.0 Web Site Using C# & VB [ILLUSTRATED]
- Build Your Own PaaS on RHEL 6
- Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- Build Your Own Oracle RAC 10g Release 2 Cluster on Linux and FireWire
- How to Build Your Own Blockchain Part 2 — Syncing Chains From Different Nodes
- Build Your Own Angularjs 读书笔记(AngularJS牛逼的地方在于它内嵌了一个表达式到Function对象的编译器。。。当然还有DI框架)
- 【链接】Developing Your Own OS On IBM PC
- Build your own ObjectPool in Java to boost app speed