<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>WinAMP</title>
<link>http://blog.roodo.com/ummchen/archives/207931.html/</link>
<description><![CDATA[為了學校專題需要，我簡略的寫了一篇在 MS Windows 下安裝 Apache, MySQL, PHP 的文件！雖然網路上已經一大堆相關的資料了，但保險起見還是自己實作一遍給組員看好了。 ^^"

在 Windows 下架設 Apache + MySQL + PHP：

1.下載 Apache httpd ( apache_2.x.xx-win32-x86-no_ssl.msi )，安裝過程中會要求填入伺服器網域名稱，若沒有網域名稱，可填入 "localhost" 即可，待安裝完畢後，系統工具列會出現 Apache 的圖示，可以利用該工具 "Start", "Stop" or "Restart" Apache 伺服器。

2.下載 PHP ( php-4.x.x-Win32.zip )，解壓到你想安裝的目錄下即可，如："c:/php"。將 "php4ts.dll" 和 "sapi/php4apache2.dll" 複製到 "c:/windows/system32"。將 "php.ini-recommended" 複製到 "c:/windows" 並更名為 "php.ini"。

3.設定 "php.ini" 找到 "extension_dir" 將其設為 PHP 外部模組的路徑，如：extension_dir = "c:/php/extensions/"。如有需要某些模組，可以在 "Dynamic Extensions" 底下找到該模組，並將其註解 ";" 拿掉，如：extension=php_bz2.dll。

4.修改 Apache 設定檔，使用文字檔編輯器開啟 Apache 安裝目錄下的 "conf/httpd.conf"。在 "httpd.conf" 中加入以下兩行：

LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

並找到 "DirectoryIndex"，將其加上 "index.php"，如：DirectoryIndex index.html index.html.var index.php。

如同 "php.ini"，如果需要某些模組，可在 "Dynamic Shared Object (DSO) Support" 底下找到該模組，並將其註解 "#" 拿掉，如：LoadModule rewrite_module modules/mod_rewrite.so。

5.重新啟動 Apache，若出現任何錯誤訊息，有可能是上述的 "php.ini" 或 "httpd.conf" 未設定正確，可以試著查看 Apache 安裝目錄下的 "logs/error.log"，並找出其錯誤。

6.安裝 MySQL ( mysql-4.0.xx-win.zip )，安裝完畢後，執行安裝目錄下 "bin/winmysqladmin.exe"，可利用該工具 "Start" or "Stop" MySQL 伺服器。

7.下載 phpMyAdmin ( phpMyAdmin-2.x.x.zip )，解壓到 Apache 安裝目錄下的 "htdocs" 底下，並修改 phpMyAdmin 的 "config.inc.php" 設定檔。

將 $cfg['Servers'][$i]['host'] 設為 MySQL 伺服器的網域名稱，如：$cfg['Servers'][$i]['host'] = 'localhost';。
將 $cfg['PmaAbsoluteUri'] 設為 phpMyAdmin 的瀏覽路徑，如：$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/';。
並建議將 $cfg['Servers'][$i]['auth_type'] 設為 'http'，每次執行 phpMyAdmin 時都必須輸入密碼，如果使用 'config'，請將 MySQL 的使用者和密碼分別填入 $cfg['Servers'][$i]['user'] 和 $cfg['Servers'][$i]['password']。
(注意：MySQL 安裝完畢後 root 預設的密碼為空值！)

8.開啟 http://localhost/phpmyadmin/，進入後點下 "權限" 連結，為了增加 MySQL 的安全性，請修改 root 密碼，並新增一位使用者，其權限不需要如 root 這麼完整，請依個人需求來增加，如：SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, FILE, INDEX, ALTER, CREATE TEMPORARY TABLES 即可，使用者增加完成後，往後就以該使用者登入 MySQL 即可！]]>
	</description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/ummchen/archives/207931-comment.xml" rel="self" type="application/rss+xml" />
<item>
	<title>回應：WinAMP</title>
	<description><![CDATA[
發現，如果使用 phpMyAdmin 2.6.1 (or 之後版本)，
php 必須開啟 php_mbstring.dll 模組！



]]>
	</description>
	<link>http://blog.roodo.com/ummchen/archives/207931.html</link>
	<guid>http://blog.roodo.com/ummchen/archives/207931.html#comment-196378</guid>
	<author>umm.chen@gmail.com(立羽)</author>	<category>文章回應</category>
	<pubDate>Tue, 21 Jun 2005 15:23:04 +0800</pubDate>
</item>
<item>
	<title>回應：WinAMP</title>
	<description><![CDATA[
發現 Win32 版的 MySQL 再對中文處理時會有些問題！
必須在 my.ini 檔中設定你所要的語系，如：

[mysqld]
default-character-set = big5
]]>
	</description>
	<link>http://blog.roodo.com/ummchen/archives/207931.html</link>
	<guid>http://blog.roodo.com/ummchen/archives/207931.html#comment-196377</guid>
	<author>umm.chen@gmail.com(立羽)</author>	<category>文章回應</category>
	<pubDate>Tue, 21 Jun 2005 15:22:31 +0800</pubDate>
</item>
</channel>
</rss>