silanos_1

Analytics

ad silanors2

2017年9月29日 星期五

[Mantis]如何 安裝Mantis與使用PHPMailer寄送郵件 (How to install Mantis with mail sent using PHPMailer)


問題

如何安裝Mantis


解決方法

1.下載phpsStudy頁面(phpStudy.zip)
2.下載Microsoft Visual C++ 2008 可轉散發套件 (x86)
3.下載Mantis /PHPMailer_5.2.0.zip
4.解壓縮phpStudy.zip,並點擊exe檔進行安裝phpStudy,安裝後如下圖

5.設定php.ini的date_timezone,
=>其他選項菜單=>PHP擴展及設置=>參數值設置=>date_timezone=>輸入Asia/Taipei=>確定

6.檢查phpStudy上是否Apache與MySQL皆綠燈(正常執行),若是紅燈,通常是PORT被占用,調整一下就可以
=>其他選項菜單=>phpStudy設置=>端口常規設置

=>http端口(預設是80),改掉後點擊phpStudy重啟按鈕就可以

7.安裝MySQL,預設值帳密都一樣: root / root
=>其他選項菜單=>phpMyAdmin

=>登入輸入密碼root=>接下來通常都採預設,直到安裝完成

8.解壓縮Mantis,放置在phpStudy安裝位置下的WWW資料夾下

=>Mantis解壓後保持一層就好

=>解壓縮PHPMailer_5.2.0=>將資料夾改名為phpmailer(一樣一層)=>放置在mantis/core資料夾下
9.安裝Mantis
=>其他選項菜單=>查看phpInfo


=>更改路徑為mantis=>進入安裝mantis頁面(管理者預設帳密administrator / root)

=>進入安裝
10.設定Mantis使用PHPMailer發送mail
=>找到mantis資料夾底下config_inc.php=>以文字開啟=>增加以下
$g_enable_email_notification = ON;--------啟用寄發mail功能
$g_smtp_host = '10.87.46.10';--------smtp伺服器
$g_smtp_username = 'username';--------smtp伺服器使用者帳號(可空白)
$g_smtp_password = 'password';--------smtp伺服器使用者密碼(可空白)
$g_use_phpMailer = ON;--------使用phpmailer
$g_phpMailer_path = './core/phpmailer/';--------phpmailer放置路徑
$g_phpMailer_method = 2;
$g_return_path_email = '12345@sina.com';--------完整邮箱名稱(通常是發mail的共用帳號)

11.新增加使用者,若增加使用者後收到mail通知,則mail設置完成!

沒有留言:

as silanors3

熱門文章

bloggerads