1. install_ubuntu.sh
打開網頁https://secure.phabricator.com/diffusion/P/browse/master/scripts/install/install_ubuntu.sh
複製shell腳本,
vi ~/install_ubuntu.sh
粘貼腳本內容到文件 :wq
2. 安裝sudo ./install_ubuntu.sh
3. sudo vi /etc/apache2/sites-enabled/000-default.conf
編輯:
將DocumentRoot 後面的 /home/zhanglong/phabricator/webroot
4. sudo vi /etc/apache2/apache2.conf
添加下面內容
<Directory "/home/xxx/phabricator/webroot">
Require all granted
</Directory>
5. 重啓apache
sudo /etc/init.d/apache2 restart
6. sudo ./bin/storage upgrade
如果安裝mysql時使用了用戶名和密碼, 那麼需要添加用戶名密碼
sudo ./bin/config set mysql.host 127.0.0.1
sudo ./bin/config set mysql.user root
sudo ./bin/config set mysql.pass helloworld
7. 安裝sendmail
sudo apt-get install sendmail
8. 郵件設置
metamta.default-address 填郵件的address
9. 郵件發送過慢解決:
http://www.linuxidc.com/Linux/2014-10/107946.htm
centos的解決辦法:
二:發送郵件過慢問題
上面的步驟已經可以正常發送郵件了,但是卻發現發送過慢,此時,請檢查hosts:
cat /etc/hosts
結果發現:
127.0.0.1 localhost.localdomain localhost
中並沒有hostname,將其加入,查看主機名稱直接命令:hostname ,這裏加入主機名稱爲:testhost,則改過後的內容則爲:
127.0.0.1 localhost.localdomain localhost testhost
接着,重啓sendmail;
完成此步驟後還可以解決一個sendmail和sm-client啓動慢的問題;
三、郵件發送方爲:[email protected]代發問題
方法一:修改hostname爲個人域
方法二:僞裝成[email protected]
執行以下命令:
/etc/mail/sendmail.mc
打開後編輯文件,在末端加入以下內容:
MASQUERADE_AS(gongzi.me)dnl FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl MASQUERADE_DOMAIN(gongzi.me)dnl
將其中的gongzi.me換成你自己的域名,然後保存。接着執行以下命令:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
而後,重啓sendmail服務。
四:執行 m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 時,報錯:sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory,並且導致sendmail相關服務無法正常啓動。
原因:未安裝sendmail-cf
解決:執行以下命令:
yum install sendmail-cf
完成後問題解決。