Build a mediawiki site on your own computer
来源:互联网 发布:仿手写字体软件 编辑:程序博客网 时间:2024/05/21 09:59
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 a mediawiki site on your own computer
- Build your own PHP on Windows
- Build Your Own PaaS on RHEL 6
- Build Your Own Website
- Build Your Own Images
- Build Your Own RAC Cluster on Linux and FireWire
- Build Your Own Ruby on Rails Web Applications [ILLUSTRATED]
- Build your OWN Apple iBeacon with a Raspberry Pi
- Build Your Own ASP.NET 2.0 Web Site Using C# & VB [ILLUSTRATED]
- Beginning Microsoft Office Live: Build Your Own Web Site Quickly and Easily
- Put Google Maps on Your Own Web Site——Google 地图 API 文档之三
- Build Your Own Annotation Processors
- build your own lisp ch5
- 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
- Build Your Own Oracle RAC 11g Cluster on Oracle Linux and iSCSI
- sign your own APK on your own OS
- 司机MBA论:刘润博客有自我炒作之嫌
- vim的强大功能如何获取
- ASP与存储过程
- 删除刚才提出N条的数据
- 小写字母转大写字母的实现
- Build a mediawiki site on your own computer
- Ajax自动完成功能
- 指针
- 第一次跳槽~
- C/C++头文件一览
- 我的第一篇Blog
- 三层程序的发布
- 一篇被禁6年的狂文:中国应当复仇
- 简单JSP实例,关于POST方法