I am trying to create a system where USB on Raspberry Pi will be auto mounted and the files can be accessed via an Apache server running over local hotspot from the same Raspberry Pi through a script written in PHP.
I am successful in all the steps and file names are visible via a local hotspot except that when the files are accessed, it is showing a 404 error.
- The
index.php
is located on/var/www/html/index.php
- The files are located on
/media/usb0
I have tried changing the file permission to 777 (just to check) but nothing worked for me.
Is there a solution?