broncowdd / BoZoN

Minimalist Drag & drop file sharing app (version 2.4 build 15)
Other
284 stars 47 forks source link

Paths are broken #165

Open jonahadmin opened 8 years ago

jonahadmin commented 8 years ago

I am attempting to do a basic installation, and many of the internal paths do not respect $default_path and $default_private.

For reference, I placed BoZon in /var/www/html. The Thumbs component tries to write to /var/www/html/thumbs/$default_private Thumbs also expects to have write privileges to /var/www/html/thumbs/ According to the logs, some components attempt to write to ./$default_private

The default installation of this application is completely unusable.

broncowdd commented 8 years ago

That's strange: nobody told me about this problem...

jonahadmin commented 8 years ago

if your install is insecure, these errors won't appear. I tried to install it so that the main installation was read only, and the data directory was completely outside the installation, on a different volume.

broncowdd commented 8 years ago

That's the problem... for now, Bozon's files can't be outside its folder... I think about that for the next version.

briceparmentier commented 7 years ago

@broncowdd, is this still true ? I'm trying to move data to another folder placed on an external hard drive (I'm running BoZoN on a Raspberry Pi). I followed the instructions to change the settings in config.php (especially for me the $default_path) before using the application right after the installation, but when I create a folder it is still created into the uploads folder inside BoZoN installation folder...

broncowdd commented 7 years ago

Yes, Php can't access files/folders outside the www folder... So, I can't fix it... sorry.