LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: charles0501 於 十月 21, 2005, 02:24:29 下午



主題: 檔案上傳功能有問題,出現如下錯誤
作者: charles0501十月 21, 2005, 02:24:29 下午
Warning: mkdir() [function.mkdir]: Permission denied in /home/tsc26/www/plog/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 /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php:134 Stack trace: #0 /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php(224): GalleryResourceStorage->_checkUserStorageFolder('1') #1 /home/tsc26/www/plog/class/gallery/dao/galleryresources.class.php(483): GalleryResourceStorage->storeUpload('3', '1', Object(FileUpload)) #2 /home/tsc26/www/plog/class/action/admin/adminaddresourceaction.class.php(78): GalleryResources->addResource('1', '1', '', Object(FileUpload)) #3 /home/tsc26/www/plog/class/controller/controller.class.php(305): AdminAddResourceAction->perform() #4 /home/tsc26/www/plog/admin.php(39): AdminController->process(Array, 'op') #5 {main} thrown in /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php on line 13

gallery及tmp 都開放777權限
php.ini 的 uploadfile 改成16M
PHP5.0
fedora core 2
apache 2.4
mysql 4.3
請問一下這是什麼問題?
捆擾我很久了!! 謝謝!!


主題: Re: 檔案上傳功能有問題,出現如下錯誤
作者: lss十月 21, 2005, 03:01:31 下午
gallery 是 777 ,那麼 gallery/1 呢?


主題: Re: 檔案上傳功能有問題,出現如下錯誤
作者: markwu十月 25, 2005, 09:02:05 下午
Warning: mkdir() [function.mkdir]: Permission denied in /home/tsc26/www/plog/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 /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php:134 Stack trace: #0 /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php(224): GalleryResourceStorage->_checkUserStorageFolder('1') #1 /home/tsc26/www/plog/class/gallery/dao/galleryresources.class.php(483): GalleryResourceStorage->storeUpload('3', '1', Object(FileUpload)) #2 /home/tsc26/www/plog/class/action/admin/adminaddresourceaction.class.php(78): GalleryResources->addResource('1', '1', '', Object(FileUpload)) #3 /home/tsc26/www/plog/class/controller/controller.class.php(305): AdminAddResourceAction->perform() #4 /home/tsc26/www/plog/admin.php(39): AdminController->process(Array, 'op') #5 {main} thrown in /home/tsc26/www/plog/class/gallery/dao/galleryresourcestorage.class.php on line 13

gallery及tmp 都開放777權限
php.ini 的 uploadfile 改成16M
PHP5.0
fedora core 2
apache 2.4
mysql 4.3
請問一下這是什麼問題?
捆擾我很久了!! 謝謝!!

你有裝 SELinux 嗎?有的話,請把他移除。

Mark