歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 30, 2024, 10:17:21 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  在檔案中心按檔案列表時出現錯誤求助前輩 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 在檔案中心按檔案列表時出現錯誤求助前輩  (閱讀 9361 次)
jcluh
新手見習
*
文章: 2


檢視個人資料
« 於: 三月 12, 2007, 11:30:11 下午 »

各位前輩:我是新手,初次架設 Blog請多多指導。
在檔案中心按檔案列表時出現錯誤,其訊息如下:
Warning: mkdir() [function.mkdir]: Permission denied in /usr/local/www/data/blog/class/file/file.class.php on line 307

Fatal error: Uncaught exception 'Exception' with message 'Could not create user storage folder for resources: ./gallery/1' in /usr/local/www/data/blog/class/gallery/dao/galleryresourcestorage.class.php:134 Stack trace: #0 /usr/local/www/data/blog/class/gallery/dao/galleryresourcestorage.class.php(151): GalleryResourceStorage->_checkUserStorageFolder('1') #1 /usr/local/www/data/blog/class/action/admin/adminresourcesaction.class.php(45): GalleryResourceStorage->checkUserStorageFolder('1') #2 /usr/local/www/data/blog/class/action/admin/adminresourcesaction.class.php(61): AdminResourcesAction->checkFolders() #3 /usr/local/www/data/blog/class/controller/controller.class.php(309): AdminResourcesAction->perform() #4 /usr/local/www/data/blog/admin.php(39): Controller->process(Array, 'op') #5 {main} thrown in /usr/local/www/data/blog/class/gallery/dao/galleryresourcestorage.class.php on line 134

可能是檔案或資料夾的權限問題,但是我是依照說明安裝的,
把 LifeType 內的 /tmp 、 /gallery 與 /config/config.properties.php 改為可讀寫。等安裝完後,再把 /config/config.properties.php 改回唯讀。

我的工作環境是FreeBsd 6.2 + apache2.2.4 +php 5.2.1 + mysql 5.0.33 + LifeType 1.0.6 正式版
« 最後編輯時間: 三月 12, 2007, 11:33:32 下午 由 jcluh » 已記錄
hlps9999
版主
資深會員
*****
文章: 288



檢視個人資料 個人網站
« 回覆文章 #1 於: 三月 12, 2007, 11:55:05 下午 »

把 LifeType 內的 /tmp 、 /gallery 與 /config/config.properties.php 改為可讀寫。

你的可寫,是那個身份可寫呢?
假如只是讓root可寫,當然還是不行了。
要讓網路使用者apache(在FreeBsd是這個名稱嗎?沒玩過,不確定)可寫才OK啦!

你可以試著先改成777看看
程式碼:
chmod 777 -R gallery

或者
程式碼:
chown -R apache.apache gallery

已記錄
jcluh
新手見習
*
文章: 2


檢視個人資料
« 回覆文章 #2 於: 三月 13, 2007, 12:55:20 上午 »

感謝 hlps9999 前輩的指點,我照做執行如下指令後就好了。
cd /usr/local/www/data/blog
chown -R www gallery
chmod -R 755 gallery
chown -R www tmp
chmod -R 755 tmp

因為我是新手,第一次安裝Blog ,完全按照本站的
使用安裝精靈來安裝 LifeType ,如果可以的話,請
在安裝說明中再加上以Unix like 作業系統安裝的話,
這兩個資料夾的權限和擁有者的設定說明。
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  在檔案中心按檔案列表時出現錯誤求助前輩 « 上篇主題 下篇主題 »
    前往: