Problem to add album from the server

majolie

Joined: 2014-02-10
Posts: 2
Posted: Mon, 2014-02-10 19:50

Hello,

I want to add albums directly from my server.
So, I upload the album with Filezilla from my computer to my server FTP.

But after, when I go on gallery to try to add the path, it tell "This directory is not readable(legible) by the Web server"
(Sorry for the translation, I use the french version)

So my question is, how I have to write the access path ?
Is it a kind of "/www/repertory/..." ?

Thanks for your help !

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Wed, 2014-02-12 11:43

It looks like the module uses the PHP is_readable function to check whether the location exists and is readable. Possibly the permissions on the directory are too restrictive and maybe the www-user doesn't have permission to access it.

I don't use the server add module so I'm not 100% sure but assuming the uploaded ftp location is something like /www/repertory/myuploads then that is exactly what you would add into the server add configuration page.

If that doesn't work then you would need to check the ownership/permissions on the myuploads directory. How did you create that directory in the first place? By terminal prompt or just within FTP? I suspect the www-user (or is it group - I can't remember which one now) would need to at least have read access to the directory. If you've created it straight from within FTP, then it is probably owned and accessibly only to the account you logged into FTP with.