通過HM安裝後,出現的警告:
PHP 的暫存目錄無法讓 PHP 存放上傳後的檔案。這個目錄尚未設定好或許並不會
造成太大的問題,但是如果你無法偵測到上傳的文件或是其他問題的話,嘗試設
定你的 php.ini 檔案或許可以解決這些問題。
/The PHP temporary directory is not set
The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.
解決方案:
調整php.ini的內容,修改upload_tmp_dir
通過Cpanel的php.config建立一個php.ini
接著下載下來編輯,找到upload_tmp_dir,去掉前面的";"
在等號後面加上 /home/username/public_html/tmp
其中/home/username/為虛擬主機的絕對路徑
在 /public_html/ 下建立一個目錄名為 tmp (即 /public_html/tmp)
將目錄權限設為777
即可解決
Friday, June 21, 2013
PHP 的暫存目錄無法讓 PHP 存放上傳後的檔案
Posted on 6:35 PM by unpredictable | No comments
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment