Page 1 of 1

Folder permissions

Posted: Fri Feb 22, 2013 3:56 pm
by ffrosh
Hello,

My co-administrator ran into the following problem when attempting to create a new gallery after server move:

Error
JFolder::create: Could not create directory

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg/) is not within the allowed path(s): (/home/clients/new.brk.ee) in /home/clients/new.brk.ee/www/libraries/joomla/filesystem/folder.php on line 451

Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg/) is not within the allowed path(s): (/home/clients/new.brk.ee) in /home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery.php on line 78

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg/) is not within the allowed path(s): (/home/clients/new.brk.ee) in /home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/classes/agHelper.php on line 474


and:

Admiror Gallery cannot create thumbnails in /home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg/
Check folder permmisions!
Admiror Gallery: 4.5.0
Server OS:nginx
Client OS:Windows XP
PHP:5.3.21-1~dotdeb.0


I have set the whole /thumbs/ folder at 777 but no change.
Any ideas as to how to fix this?

EDIT: forgot to add: Joomla version is 2.5.9.

Re: Folder permissions

Posted: Mon Feb 25, 2013 2:40 pm
by Vasiljevski
Can you remove restriction : open_basedir restriction in effect?

It looks like the server configuration is not allowing Joomla to write to this folder because of open_basedir restriction.

Re: Folder permissions

Posted: Mon Feb 25, 2013 3:01 pm
by ffrosh
Thanks, i'll get the service provider to figure this out.

Re: Folder permissions

Posted: Mon Feb 25, 2013 4:17 pm
by Vasiljevski
If you get any useful info on this problem, please let us know :)

Re: Folder permissions

Posted: Mon Feb 25, 2013 4:25 pm
by ffrosh
i've got this reply from my service provider (free translation follows):

It certainly isn't an open_basedir or permissions problem.
We guess that nginx gives a non-standard path to php.
The gallery script ought to be able to accommodate that.


I'm kind of clueless here because the content that was set up at a different service provider prior to final move continues to work flawlessly.
Any new content we try to add runs to ground though.

EDIT: the service provided had previously mused at the fact that the plugin attempts to generate a catalogue at:
/home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg/
instead of generating a file at:
/home/clients/new.brk.ee/www/plugins/content/admirorgallery/admirorgallery/thumbs/Nova_Office/DNL140-A.jpg

Re: Folder permissions

Posted: Mon Feb 25, 2013 4:52 pm
by ffrosh
I figured it out myself, my co-admin generated subfolder named DNL140-A.jpg
I changed the subfolder name to DNL140A and everything works again.
I assume the fact that the folder anme contained a file extension is to blame?

Re: Folder permissions

Posted: Tue Feb 26, 2013 11:27 am
by Vasiljevski
Interesting, I didn't know that this can be problematic :) Nice to know.

Thanks for sharing.