thibaud-rohmer / PhotoShow

A free web gallery in PHP with drag-n-drop support
http://www.photoshow-gallery.com
502 stars 151 forks source link

Can't install - Dir doesn't exist and couldn't be created! #290

Open jaydee888 opened 9 years ago

jaydee888 commented 9 years ago

I've created 2 directories; one for Photos and one for Thumbnails and setting. And changed the permissions of both directories to 777.

But I can't install. When I go to my browser to install, it prompts me this:

PHOTOS dir 'http://mywebsite.tld/images/' doesn't exist and couldn't be created !

Anyone can help me? Thanks!

jaydee888 commented 8 years ago

Hope this thread is maintained as already 8 days since I posted this issue but seems like it went into ether. Thanks a lot if anyone can help here.

lisandro52 commented 8 years ago

Hi! I've run into the same problem but it was a configuration issue because I wanted to access a usbdrive which PHP couldn't find. Anyway, could you post your config.php file to see that everything is set correctly?

jaydee888 commented 8 years ago

Hi, There is nothing much in the config.php file. It contains the following 3 lines:

$config->photos_dir = "http://mywebsite/subdirectory1/subdirectory2/img/"; $config->ps_generated = "http://mywebsite/subdirectory1/subdirectory2/thunbs/"; $config->timezone = "Asia/Singapore";

thibaud-rohmer commented 8 years ago

The paths you're writing here are wrong :)

You should write the actual local path (for instance, "/home/jaydee/subdirectory1/subdirectory2/img" ), and not the web paths (not the http ones).

On Thu, 23 Jul 2015 at 08:49 Jaydee notifications@github.com wrote:

Hi, There is nothing much in the config.php file. It contains the following 3 lines:

$config->photos_dir = "http://mywebsite/subdirectory1/subdirectory2/img/"; $config->ps_generated = " http://mywebsite/subdirectory1/subdirectory2/thunbs/"; $config->timezone = "Asia/Singapore";

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/290#issuecomment-123998034 .

jaydee888 commented 8 years ago

Ok thanks, I installed it successfully. It's not what I'm looking for, as I thought it will show just the specific image that was made public and not the whole folder of images that are made public.

If there is a way to make the folder private but at the same time, each individual image that is made public in the folder can still be having its own direct public hotlink, but to make it so that there is no way for a viewer to know of other public images in the same folder, unless I make the whole folder public.

If I make the folder public, then all the images in the folder can be shown like a public gallery, but I would like the option for private folders, and not just private images within public folders.

Sigh.........

thibaud-rohmer commented 8 years ago

That's possible with the current version of photoshow.

Just set your album to private, and then create hotlinks with each photo you want to share.

On Fri, 24 Jul 2015 at 13:31 Jaydee notifications@github.com wrote:

Ok thanks, I installed it successfully. It's not what I'm looking for, as I thought it will show just the specific image that was made public and not the whole folder of images that are made public.

If there is a way to make the folder private but at the same time, each individual image that is made public in the folder can still be having its own direct public hotlink, but to make it so that there is no way for a viewer to know of other public images in the same folder, unless I make the whole folder public.

If I make the folder public, then all the images in the folder can be shown like a public gallery, but I would like the option for private folders, and not just private images within public folders.

Sigh.........

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/290#issuecomment-124491823 .

jaydee888 commented 8 years ago

Hey, I don't have the feature to make album private. What I have is item make private or public.

Also, when I create a new album, it becomes the child of the first album, like a sub-directory. Is there any way to make different album on the same hierarchy?

Not sure If I'm having the latest version, but I downloaded it from here in a zip folder PhotoShow-master.zip. (zip size is 1,324 KB)

Additional: By the way, I deleted uploader, user and all groups. Only left with one account and I do not allow user registration. This application is purely for my own collection to be shared or private.

thibaud-rohmer commented 8 years ago

All you need is in the right column on Photoshow.

On Fri, 24 Jul 2015 at 14:27 Jaydee notifications@github.com wrote:

Hey, I don't have the feature to make album private. What I have is item make private or public.

Also, when I create a new album, it becomes the child of the first album, like a sub-directory. Is there any way to make different album on the same hierarchy?

Not sure If I'm having the latest version, but I downloaded it from here in a zip folder PhotoShow-master.zip.

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/290#issuecomment-124503190 .

jaydee888 commented 8 years ago

Sorry, I've spent hours testing it, but I do not find the feature to make the album private and hotlink individual image as public.

Also, every new album that I can create will become the child of the previous album.

Here is the right column: http://i.imgur.com/M0jBtot.png

Also, I realized the zip file at Github for download is PhotoShow Version 2.

thibaud-rohmer commented 8 years ago

Le sam. 25 juil. 2015 08:56, Jaydee notifications@github.com a écrit :

Sorry, I've spent hours testing it, but I do not find the feature to make the album private and hotlink individual image as public.

Also, every new album that I can create will become the child of the previous album.

Here is the right column: http://i.imgur.com/M0jBtot.png

Also, I realized the zip file at Github for download is PhotoShow Version 2.

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/290#issuecomment-124814809 .

jaydee888 commented 8 years ago

No dude, even if I make the album private, the photos inside the album if they are made public, anyone can go to the album link and see all the photos made public inside the album, even though the album is made private.

That defeats the purpose of making the album private, if it highlights all the public photos. If I make the photos private, then they cannot be hotlinked publicly.

thibaud-rohmer commented 8 years ago

Hey "dude".

This link enables your friend to see the photo without setting anything as public.

On Sun, 26 Jul 2015 at 17:13 Jaydee notifications@github.com wrote:

No dude, even if I make the album private, the photos inside the album if they are made public, anyone can go to the album link and see all the photos made public inside the album, even though the album is made private.

That defeats the purpose of making the album private, if it highlights all the public photos. If I make the photos private, then they cannot be hotlinked publicly.

— Reply to this email directly or view it on GitHub https://github.com/thibaud-rohmer/PhotoShow/issues/290#issuecomment-125005361 .

jaydee888 commented 8 years ago

Thank you for your follow up and replies. At least I know what this software can do or cannot do. I've tried the Guest Token thing before and it is not what I am looking for. Guest token creates a page to the image but it is not hotlinking, which is a direct link to the image. It has no image extension so it cannot be used to embed the image in a forum or blog. You can only use ithe page as a url link.

Another thing is that after creating a Guest token for one image and in the same album, if I make another image public, then I go to the Guest token page and refresh, I will see both images in the album. This is exactly not what I want happen.

One more thing. If my friend got the guest token and then remove the token string from the token url, he will get the direct link to the image. Then even after I have cancelled his token, and create another token for another friend, my first friend can continue to use the direct link to view the image. This is because the direct link is the same for both tokens.

Anyhow, thanks for your responses here, but I can only use this script for simple stuff like having a whole album public or whole album private. The moment I make any image public, it can be seen via a guest token page, even though it is not meant for that person who who is given that token for another image. Also, any direct link to the image can be extracted out by removing the token string behind and then this direct image link can be used even when the token is cancelled.

Thanks anyway dude.