Hello! I'm trying to update my plugins before updating to Piwigo 12, but though I can see updates are available I just get "ERROR" in the corner of my screen. Nothing is logged in the Apache logs, so I think it must be file system permissions but they seem to be totally fine.
box% ls -lash upload
total 16
4 drwxrwxrwx 4 me www 512B Jun 30 2020 .
4 drwxr-xr-x 16 me www 1.0K Jul 6 2020 ..
4 drwxrwxrwx 3 me www 512B Jun 30 2020 2020
4 drwxrwxrwx 2 me www 512B Jun 30 2020 buffer
the apache server is running under the www context
Offline
I have the same problem, but after the update
Offline
I have had a similar issue with previous updates, albeit with themes.
The issue was indeed file system permissions.
You list the permissions of subdirectories of the 'upload' directory but plugins are stored in the 'plugins' subdirectory. 'upload' is for originals for your gallery.
Offline
I also had the same problem, before updating to 12. So I just updated to 12 and all of the plugins were updated during that successfully.
Offline
alb wrote:
I have had a similar issue with previous updates, albeit with themes.
The issue was indeed file system permissions.
You list the permissions of subdirectories of the 'upload' directory but plugins are stored in the 'plugins' subdirectory. 'upload' is for originals for your gallery.
Right you are!
Same situation for the plugins folder though, copy/paste mistake on my part.
box% ls -lash plugins
total 192
4 drwxrwxrwx 11 me www 512B Nov 4 23:28 .
4 drwxr-xr-x 16 me www 1.0K Jul 6 2020 ..
4 drwxrwxrwx 5 me www 512B Nov 4 23:28 AdminTools
4 drwxrwxrwx 5 me www 512B Nov 4 23:23 ExtendedDescription
4 -rw-r--r-- 1 me www 610B Jan 19 2021 index.php
4 drwxrwxrwx 3 me www 512B Jun 30 2020 language_switch
4 drwxrwxrwx 6 me www 512B Jun 30 2020 LocalFilesEditor
4 drwxrwxrwx 4 me www 512B Jun 30 2020 menalto2piwigo
4 drwxrwxrwx 3 me www 512B Jun 30 2020 permalink_generator
4 drwxr-xr-x 5 me www 512B Jan 19 2021 physical_photo_move
4 drwxrwxrwx 3 me www 512B Jun 30 2020 rotateImage
4 drwxrwxrwx 7 me www 512B Jun 30 2020 TakeATour
48 -rw-r--r-- 1 me www 46K Jun 30 2020 zipf42EG8
48 -rw-r--r-- 1 me www 46K Jun 30 2020 zipIFJsir
48 -rw-r--r-- 1 me www 46K Jun 30 2020 zipmx3XrM
Offline
jawn101 wrote:
Same situation for the plugins folder though
Not quite the same, I would say. I don't know which exactly plugins are going to be updated (and what are permissions for files and folders inside the directory you listed) but there is no write permission for www group at least for one plugin:
4 drwxr-xr-x 5 me www 512B Jan 19 2021 physical_photo_move
Offline
Assuming that 'me' is your user (possibly also used for ftp) and 'www' the web server user, you want to change permissions such that both 'me' and 'www' can read and write ('www' at least for all updates of program files and to upload files and create thumbnails and cache under _data/) and others at most have read permissions, if at all, so directories should be 775 and files 664. You can accomplish that by executing
chmod -R a-x,ug=rwX,o=rX piwigo
where piwigo is your piwigo installation directory.
You may also want to set
umask 002
in your ~/.bash_profile if you ssh login and work on the command line.
Or umask 007 if others should not have even read access on directories and files you create. In which case you can also further restrict permissions on piwigo to 770 and 660 using
chmod -R a-x,ug=rwX,o= piwigo
777 and 666 (let alone even 777 for files) are almost never necessary unless the web server user is neither the user nor the group user (in which case you probably also don't want 7 and 6 for group).
Offline
erAck wrote:
Assuming that 'me' is your user (possibly also used for ftp) and 'www' the web server user, you want to change permissions such that both 'me' and 'www' can read and write ('www' at least for all updates of program files and to upload files and create thumbnails and cache under _data/) and others at most have read permissions, if at all, so directories should be 775 and files 664. You can accomplish that by executing
Code:
chmod -R a-x,ug=rwX,o=rX piwigowhere piwigo is your piwigo installation directory.
You may also want to set
umask 002
in your ~/.bash_profile if you ssh login and work on the command line.
Or umask 007 if others should not have even read access on directories and files you create. In which case you can also further restrict permissions on piwigo to 770 and 660 using
chmod -R a-x,ug=rwX,o= piwigo
777 and 666 (let alone even 777 for files) are almost never necessary unless the web server user is neither the user nor the group user (in which case you probably also don't want 7 and 6 for group).
This did the trick perfectly, thanks for the simple and complete answer!
Offline