andreknieriem / photobooth

A photobooth Web-Application for raspberry pi with gphoto2
https://photobooth.andrerinas.de/
MIT License
295 stars 163 forks source link

Relative path #23

Closed mhellmeier closed 4 years ago

mhellmeier commented 6 years ago

You can only install photobooth into the root directory of your apache webserver (/var/www/). But I want to install photobooth into a subdirectory (like /var/www/photobooth/). This doesn't work because the code trys to jumps directly into the hard-coded folders / files.

One solution would be creating a config variable with the path of the application (in my example this would be /photobooth/). Then put the config variable in front of every include or resource.

After trying to install photobooth into a subdirectory, I got the following result: photobooth-folder-fail

BrixSat commented 6 years ago

Yes i am aware of that, going to be fixed soon :) i have a new release to be made in the next 2 months or so (as soon as it works nicely).

Thanks for the help :)

2018-02-28 18:19 GMT+00:00 mhellmeier notifications@github.com:

You can only install photobooth into the root directory of your apache webserver (/var/www/). But I want to install photobooth into a subdirectory (like /var/www/photobooth/). This doesn't work because the code trys to jumps directly into the hard-coded folders / files.

One solution would be creating a config variable with the path of the application (in my example this would be /photobooth/). Then put the config variable in front of every include or resource.

After trying to install photobooth into a subdirectory, I got the following result: [image: photobooth-folder-fail] https://user-images.githubusercontent.com/1036284/36804902-36f140c0-1cbc-11e8-8e07-1d74f5c7f73a.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andreknieriem/photobooth/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/ABs9RSQlFQIzdoD3cNuKInLfjOJ_NPBNks5tZZibgaJpZM4SXHBh .

andi34 commented 4 years ago

Submitted: https://github.com/andreknieriem/photobooth/commit/ec42bc52c15c5645044f40841b6665e41b333047