Announcement

#1 2021-01-20 17:23:37

DantePasquale50
Member
2021-01-20
2

Upgrade not working due to Permissions

Hello/Hi/Greetings,

I just tried to upgrade to the latest version but it seems all files are not writable.  What should the file permissions look like?

Here's an example:

-rw-r--r--  1 web4 client0  1823 Mar 26  2020 about.php
-rw-r--r--  1 web4 client0  5723 Mar 26  2020 action.php
drwxr-xr-x  4 web4 client0  4096 Mar 26  2020 admin
-rw-r--r--  1 web4 client0 10567 Mar 26  2020 admin.php
-rw-r--r--  1 web4 client0 15758 Mar 26  2020 comments.php
-rw-r--r--  1 web4 client0   467 Mar 26  2020 COPYING.txt

I'm running nginx which runs as user: www-data

Also, the database dump fails due to permissions too. Not sure why but I can address that later.



Piwigo 2.10.2 Check for upgrade
Operating system: Linux
PHP: 7.2.24-0ubuntu0.18.04.7 (Show info) [2021-01-20 11:19:32]
MySQL: 5.5.5-10.1.47-MariaDB-0ubuntu0.18.04.1 [2021-01-20 11:19:32]
Graphics Library: ImageMagick 6.9.7-4

Piwigo URL: https://www.dantesinfernophotography.com/photos

Offline

 

#2 2021-01-20 17:46:11

erAck
Only trying to help
2015-09-06
1147

Re: Upgrade not working due to Permissions

Temporarily for the upgrade (or any modification of the installation) recursively add write permissions for others

chmod -R o+w photos

and after the upgrade remove it again but make sure to keep at least _data and upload writeable (and local config to be able to make changes there), so

chmod -R o-w photos
chmod -R o+w photos/{_data,upload,local}


Instead, you can also unpack the piwigo zip as user web4 and make sure you have the mentioned directories writeable for the web server, which leaves a cleaner ownership as updating from the web frontend may leave an ownership of www-data for the newly created files, making further updates without going through the web frontend problematic unless you can become root and can adjust permissions or ownerships.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-01-20 18:04:19

DantePasquale50
Member
2021-01-20
2

Re: Upgrade not working due to Permissions

Thanks! I will test that later today!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2021 · Contact