youki wrote
I tried to use a usb drive. No way!
??
youki wrote
How could I verify that the access is fully granted on my different instance of dokuwiki folders?
Check the permissions, and look at your apache2 log file.
youki wrote
Could it be a matter of apache configuration?
Perhaps - but if it previously worked when in a directory beneath your web root, and you haven't changed your apache conf files it's very unlikely.
If your new DokuWiki directory is on another file system, with different permissions to the old directory beneath the web root, that disallow access by your web server, then it's not the web server configuration. A sym-link won't change that, what will change that problem is:-
*
mount remount
* mount from
/etc/fstab (with user and group set to the web server,
automount using either the UUID or label to identify the device so that it mounts to the correct place every-time)
* (as root)
chmod -R $webserver:$webserver $somedir/* (where $webserver is the user your webserver runs as,
$somedir is the directory your SD card is mounted in. Note that you can't chmod the symlink, so you recursively chmod the directory the symlink target is in)
* mount using a custom udev rule (similar to using fstab, just different config format).
Please see further down on how to supply the information needed for appropriate solution and steps to take.
youki wrote
<snipped>
I can install dokuwiki in var/www/html and www-dev/private or www-dev/public folders. It works.
I tried to make a new server folder on the usb key in the same way but I get an error 403.
403
is a permissions error. That is consistent with what is expected. Check your webserver log for the full permission error information - it will probably say something about not having permission to read your SD card. (
/var/log/apache2/error.log)
If you're using a DE automount for the mounting of the SD card, (e.g. usbmount, gfs, fuse, SOLID, or udev/udisks) then it will be "owned" by you, meaning that the web server won't have permission to view the DokuWiki files. A symlink will just inherit the existing (prohibitive) permissions.
To provide a working answer it would be best if we knew where the SD card is mounted, how it was mounted, and what permissions it has.
To provide that information please do the following:-
Make sure your SD card is "mounted", then run the following command (as a general user - just copy, paste, and press Enter) and post the output in your reply:-
mount|grep \/media;for i in $(mount|grep \/media|cut -d / -f4-|cut -d " " -f1);do echo "$i";ls -al /"$i"|head -n6;done
[/color]