LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: jcluh 於 三月 12, 2007, 11:30:11 下午



主題: 在檔案中心按檔案列表時出現錯誤求助前輩
作者: jcluh三月 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 正式版


主題: Re: 在檔案中心按檔案列表時出現錯誤求助前輩
作者: hlps9999三月 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



主題: Re: 在檔案中心按檔案列表時出現錯誤求助前輩
作者: jcluh三月 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 作業系統安裝的話,
這兩個資料夾的權限和擁有者的設定說明。