![]() |
|
Trouble uploading images - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Trouble uploading images (/thread-1011.html) |
Trouble uploading images - ross - 2006-12-23 Hi, Just installed version 1.0.6 for first time. Thought I followed all the installation instructions but now I receive an error message when trying to create an album and upload photos: -- Warning: mkdir(/usr/home/czcweb/public_html/zenphoto/albums/yes) [function.mkdir]: Permission denied in /usr/home/czcweb/public_html/zenphoto/zen/admin.php on line 105 Warning: move_uploaded_file(/usr/home/czcweb/public_html/zenphoto/albums/yes/ss_lettr.png) [function.move-uploaded-file]: failed to open stream: No such file or directory in /usr/home/czcweb/public_html/zenphoto/zen/admin.php on line 117 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpOCWura' to '/usr/home/czcweb/public_html/zenphoto/albums/yes/ss_lettr.png' in /usr/home/czcweb/public_html/zenphoto/zen/admin.php on line 117 -- It appears this may have something to do with changing the permissions, or perhaps a database compatibility issue. Any help please? Trouble uploading images - trisweb - 2006-12-23 Seems like you need to change the permissions on the /albums directory to be world-writable, that's all. Try that and see what happens. Trouble uploading images - ross - 2006-12-24 Thanks for your response. I thought I did that already. Here's the related code from my admin.php. I'm an amateur with backend, so maybe I made a mistake: / UPLOAD IMAGES */
Trouble uploading images - jayray999 - 2006-12-24 Some hosting services like Dreamhost have a script called suexec running. On such hosts you must chmod your /albums directory to 755 instead of the usual 777. This is a security feature. Trouble uploading images - thinkdreams - 2006-12-24 @jayray999 I'm on Dreamhost, and 777 has always worked for me just fine. Never had to chmod 755. Trouble uploading images - ross - 2006-12-24 The 755 fix did not work. In the meantime I've contacted my host to help troubleshoot the problem. However, I've also discovered some disfunctionality elswhere with my zenphoto. When trying to automatically switch themes through the options tab in admin, nothing happens. The page reloads and the current theme (default) remains. Might these two issues be related? Trouble uploading images - jayray999 - 2006-12-25 Wow, I did not know that. Here is the Dreamhost Wiki aboout Zenphoto for example... http://wiki.dreamhost.com/index.php/ZenPhoto Trouble uploading images - jayray999 - 2006-12-25 @thinkdreams You may be right. I always used 755 since I thought 777 would not work on Dreamhost. After your posting I just tried 777 on a subfolder of /albums and it does work as well. So I guess it is an urban myth as far as Zenphoto is concerned. I suppose this (755 instead of 777) is only required for folders containing PERL scripts on Dreamhost. I vaguely remember this issue was also important with a phpBB install I once did. Anyway I will stick with 755 since it is an added layer of protection. Trouble uploading images - liam - 2006-12-25 I'm having exactly the same problem...
I have tried changing permissions but this isn't doing anything... Any ideas? - I need this working within the next few hours or I'll find another application. Cheers, Trouble uploading images - trisweb - 2006-12-31 @ ross - "The page reloads and the current theme (default) remains. Might these two issues be related?" -- Yes, those ARE related, and it means the permissions on the cache directory are not correct. It needs to be 777, world writable. |