Hello/Hi/Greetings,
(Here your message)
Piwigo 15.3.0 Check for upgrade
Installed on 23 January 2025, 2 days ago
Operating system: Linux
PHP: 8.0.30 (Show info) [2025-01-26 13:06:52]
MySQL: 10.6.20-MariaDB [2025-01-26 13:06:52]
Graphics Library: ImageMagick ImageMagick 7.1.0-9
Cache size 8.76 Mo calculated 1 hour ago Refresh
Piwigo URL: http://richmonds.redirectme.net/
I'm using Opensuse 15.5
I've installed Piwigo in /srv/www/htdocs/piwigo
I would like upload / galleries / _data to be on my external Hard Drive under /run/media/smart/richmonds/
The group own is wwwrun www and the file permision is 777.
When I place a Symbolic link Piwigo Breaks, even though the three folder have the correct permission and group ownership.
upload -> /run/media/smart/richmonds/mainfolder/pictures/upload
galleries -> /run/media/smart/richmonds/mainfolder/pictures/galleries
Apche2
<Directory /srv/www/htdocs/piwigo>
Options FollowSymLinks Indexes MultiViews
AllowOverride All
Require all granted
</Directory>
What am I doing wrong as I've looked on your Forum about symbolic links, and to me all is correct.
Offline
Make sure that not only /run/media/smart/richmonds/ but also down to /run/media/smart/richmonds/mainfolder/pictures/upload and /run/media/smart/richmonds/mainfolder/pictures/galleries and further down all directories are accessible to the web server user.
Online
Thanks for the reply
I've done this. Still a problem. Or do I need to create every file under richmonds with wwwrun:www 777
This is what the folders are now.
drwxr-xr-x 4 wwwrun www 4096 2024 richmonds
drwx------ 2 root root 16384 Feb 12 2024 lost+found
drwxr-xr-x 8 wwwrun www 4096 mainfolder
drwxrwxrwx 5 wwwrun www 4096 pictures
drwxrwxrwx 2 wwwrun www 4096 galleries
drwxrwxrwx 4 wwwrun www 4096 upload
Offline
No, not needed as long as directories and files under galleries are at least readable by the web server user (wwwrun for your case?) and also writeable under uploads.
You mentioned you replaced also _data, does that replacement and all entries under it have full access permissions for the web server? rwx for directories and rw for files (note that 777 is almost never needed and likely your rwx for other users in your examples is superfluous, see also [Forum, post 183419 by erAck in topic 31993] What are the correct permissions for Piwigo files and directories ?).
Online
── pictures
├── galleries
└── upload
├── 2025
│ └── 01
│ └── 24
└── buffer
Everything under Pictures has wwwrun:www and 777
I have for the moment left out _data
So the two folder galleries and upload as I showed you are symbolic linked.
This is the error when I try upload within PIWIGO menu
error during buffer directory creation
When I do a Synchronise
[./galleries/] PWG-ERROR-NO-FS (File/directory read error)
lrwxrwxrwx 1 wwwrun www galleries -> /run/media/smart/richmonds/mainfolder/pictures/galleries
Last edited by linuxisthebom (2025-01-27 06:51:21)
Offline
Any feedback about my permissions problems and the fact I cannot add photos with using symbolic Link??
Below means Symbolic link is not working.
The Check Files Integrity PLUGIN
galleries/index.php is missing
lrwxrwxrwx 1 wwwrun www 56 Jan 26 16:10 galleries -> /run/media/smart/richmonds/mainfolder/pictures/galleries
ls /srv/www/htdocs/piwigo/galleries>
-rwxrwxr-x 1 wwwrun www 610 Dec 20 12:07 index.php
/srv/www/htdocs/piwigo/galleries> cat index.php
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
// Recursive call
$url = '../';
header( 'Request-URI: '.$url );
header( 'Content-Location: '.$url );
header( 'Location: '.$url );
exit();
?>
Last edited by linuxisthebom (2025-01-28 06:55:23)
Offline
Make sure that wwwrun actually does have access. As OpenSUSE may use SELinux, the restriction could also be there. Check your /var/log/audit/audit.log file for times access should had happened. See https://doc.opensuse.org/documentation/ … linux.html
And, dumb question, how is /run/media/smart or /run/media/smart/richmonds mounted and what file system is it?
Online
Found my fault within my Opensuse Forum
Lesson Learned . With External Hard Drive Symbolic Link can only work when Hard Drive is mounted in fstab.
With all my searching no one tells you that instruction. Within the fact that's it's a USB connected Drive.
Offline
Not sure why symbolic link should work only if the external drive is mounted via fstab (as long as it is correctly mounted at all and permissions are set) but glad you solved it.
Online