2010年6月6日星期日

EP3網站系統架設教學 (WAMP5)

下載:
http://www.wampserver.com/en/download.php
http://www.wampserver.com/dl.php?id_dl=5
http://ianznet.110mb.com/ran/rancp.zip

設定 WAMP5:
1. 安裝後,開 WAMP5 服務器然後按托盤圖標 (Tray Icon)
2. PHP settings > PHP Extensions
3. 拉下去,按 php_mssql
- 現在 WAMP5 會自動重啟 (不是電腦)
- 重啟過後就完成了

設定亂網站:
1. 解壓 rancp.zip 到 www 文件夾 (C:\wamp\www)
2. 你的 config.php 要是這樣的

SQL2005
$CONFIG['servername'] = "IaNz Ran Online"; //Web Name
$CONFIG['dbaddress'] = "PCNAME\SQLEXPRESS"; //DB IP
$CONFIG['dbuser'] = "sa"; //DB ID
$CONFIG['dbpass'] = "1234"; //DB PASS
$CONFIG['dbdbname'] = "RanUser";
$CONFIG['dbdbname1'] = "RanGame1";
$CONFIG['dbdbname2'] = "RanShop";
$CONFIG['registration'] = "1";
$CONFIG['maxaccounts'] = "0";
$CONFIG['maxemail'] = "1";
$CONFIG['email'] = "0";
$CONFIG['emailaddress'] = "";
$CONFIG['emailsmtp'] = "";
$CONFIG['emailuser'] = "";
$CONFIG['emailpass'] = "";

SQL2000
$CONFIG['servername'] = "IaNz Ran Online"; //Web Name
$CONFIG['dbaddress'] = "PCNAME"; //DB IP
$CONFIG['dbuser'] = "sa"; //DB ID
$CONFIG['dbpass'] = "1234"; //DB PASS
$CONFIG['dbdbname'] = "RanUser";
$CONFIG['dbdbname1'] = "RanGame1";
$CONFIG['dbdbname2'] = "RanShop";
$CONFIG['registration'] = "1";
$CONFIG['maxaccounts'] = "0";
$CONFIG['maxemail'] = "1";
$CONFIG['email'] = "0";
$CONFIG['emailaddress'] = "";
$CONFIG['emailsmtp'] = "";
$CONFIG['emailuser'] = "";
$CONFIG['emailpass'] = "";

設定好後,打開瀏覽器,你可以打 localhost/rancp 來看
或者 127.0.0.1 也可以用你的 局域網 IP (Lan IP) 或者 對外IP。
如果是 hamachi 的也可以用 hamachi IP,不過一定要是鏈接了的才能才能開到。

0 条留言:

发表评论

注意:只有此博客的成员才能发布评论。