用自己的電腦建站中, ISP... 遲些再說, 還沒想到要上網...
●您安裝的程式:Apache 2.052, php4.310, MySQL 4.19, 在 phpbb.com 的 2.011, mysql-administrator-1.0.19, MyODBC-3.51.10-2, MySQL Control Center 0.9.4
●phpbb 2.011
當我做到這步後下一頁就是下面的錯誤...
代碼: 選擇全部
phpBB : Critical Error
Could not connect to the database我把我的安裝程序寫出來... (打了很久.... 幸好有記下來...)
1. 裝 apache
netowrk domain : localhost
server name :localhost
administrator email address : admin@localhost
選 for all user, on port 80 -> 下一步\r
選 typical, 再在 e:\ 裝
2. 完成後開瀏覽器打 localhost 看到一個 apache 網頁說 "see this instead of the website you excepted ?" 己經成功安裝 apache 了
3. 裝 php, 把下載來的 windows binaries zip file 直接在 E:\ unzip, 之後把 folder 名改為 php (因為原本的太長了...) 入資料夾拿一個名為 php.ini-recommended file 放入現在使用的 windows 資料夾 ( C:\Windows) 再把檔案改名為 php.ini (就是把後面的 -recommended 刪掉)
4. 入 Apache 資料夾在 \conf 資料夾內改 httpd.conf 檔案
#FIND
DirectoryIndex index.html index.html.var
#AFTER, ADD
DirectoryIndex index.php
#FIND
ScriptAlias /cgi-bin/ "E:/Apache2/cgi-bin/"
#AFTER, ADD
ScriptAlias /php/ "e:/php/"
#FIND
AddDefaultCharset ISO-8859-1
#REPLACE
AddDefaultCharset big5
#FIND
AddType application/x-gzip .gz .tgz
#AFETR, ADD
AddType application/x-httpd-php .php
#FIND
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#
#AFETR, ADD
Action application/x-httpd-php "/php/php.exe"
在右下方的 apache 圖示按左鍵再選 restart...
5. 之後我入了 apache2 的資料夾, 在 htdoc 資料夾內開一個 txt 檔案, 在內打
<? phpinfo() ?>
之後 save, 再把檔案名改為 info.php
再開瀏覽器, 打 localhost/info.php 看到一些資料, 這樣也代表我裝好 php 了...
6. 裝 MySQL, 開 zip file 再開 setup.exe
裝好後後開 server config 按了很多次 next, 其中的選擇應該和問題無關...
選了 port 是 3306, 再 next, 我想應該選中間那個 mtuilanguage, 因為有可能有繁+簡+日文+英文的情況...再 next, 2 個也選, 因為下面的 command line 也可能有用的...
按 next, 打密碼, 選 connect from localhost ;之後要打密碼時,
user name : root
database password : 密碼...
按 next, 再按 execute... ,再按 finish...
7. 裝 MySQL Control Center
開 MySQL Control Center... 按 local, connect, 按在 local 下的分支 database, 按 new database, 選名為"forum"
按 user admin 再按 new user, 內容 :
username : administrator
host : localhost
password : 密碼\r
在右邊選之前建的那個 database (forum), 之後再按 all privileges... 再按 add
8. 把 MySql Control Center 關掉, 之後裝 MySql ODBC Driver... 裝完之後開control panel, 系統管理工具, ODBC
按系統資源來源名稱, 按新增 (add), 選 MySQL ODBC 3.51 Driver, 按完成, 到一個填表的地方.
datasource name : phpbb
server : localhost
Database name : forum
user : administrator
password :密碼\r
按了 test, 是 successful . 按確定離開.
9. 裝 phpbb
