2013年1月23日 星期三

SME Server 的PHP暫存目錄(tmp)設定

假設 ibay 名稱為 sitweb:

步驟一
IBAY='ibayname'

db accounts setprop $IBAY PHPBaseDir /tmp/:/home/e-smith/files/ibays/$IBAY/html/:/home/e-smith/files/ibays/$IBAY/tmp
db accounts setprop $IBAY AllowOverride All
db accounts setprop  $IBAY FollowSymLinks enabled
signal-event ibay-modify $IBAY
/etc/init.d/httpd-e-smith restart

步驟二

mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/templates/etc/php.ini/50PathsDirectories /etc/e-smith/templates-custom/etc/php.ini
echo upload_tmp_dir = \"/home/e-smith/files/ibays/$IBAY/tmp\" >> /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
expand-template /etc/php.ini
sv t httpd-e-smith


參考資料:http://bricoles.du-libre.org/doku.php/sme:apache

沒有留言:

張貼留言