Announcement

#1 2012-07-04 05:00:02

florid
Member
2012-07-04
2

Files permission for autoupgrade

I installed a 2.4.0 piwigo on my VPS (ubuntu). And there's a new version 2.4.1 that requires upgrade.
But when I tried to update, it says "An error has occured during extract. Please check files permissions of your piwigo installation."
Click here to show log error.

Code:

upgrade.php: write_protected
i.php: write_protected
install/db/121-database.php: write_protected
install/upgrade_2.3.0.php: write_protected
admin/batch_manager_unit.php: write_protected
admin/configuration.php: write_protected
admin/history.php: write_protected
admin/include/updates.class.php: write_protected
admin/include/plugins.class.php: write_protected
admin/include/image.class.php: write_protected
admin/include/languages.class.php: write_protected
admin/include/functions.php: write_protected
admin/include/themes.class.php: write_protected
admin/picture_modify.php: write_protected
include/ws_protocols/rest_encoder.php: write_protected
include/template.class.php: write_protected
include/constants.php: write_protected
language/es_ES/admin.lang.php: write_protected
language/es_ES/common.lang.php: write_protected
language/es_ES/about.html: write_protected
language/el_GR/admin.lang.php: write_protected
language/sk_SK/admin.lang.php: write_protected
language/ja_JP/admin.lang.php: write_protected
language/it_IT/admin.lang.php: write_protected
language/he_IL/common.lang.php: write_protected
language/ar_SA/admin.lang.php: write_protected
language/zh_CN/admin.lang.php: write_protected
language/af_ZA/admin.lang.php: write_protected
language/de_DE/upgrade.lang.php: write_protected
language/de_DE/admin.lang.php: write_protected
language/de_DE/common.lang.php: write_protected
language/de_DE/help/help_groups.html: write_protected
language/de_DE/help/search.html: write_protected
language/de_DE/help/synchronize.html: write_protected
language/de_DE/help/cat_move.html: write_protected
language/de_DE/help/user_list.html: write_protected
language/de_DE/help/cat_modify.html: write_protected
language/de_DE/help/maintenance.html: write_protected
language/de_DE/help/help_misc.html: write_protected
language/de_DE/help/cat_perm.html: write_protected
language/de_DE/help/help_add_photos.html: write_protected
language/de_DE/help/photos_add_ftp.html: write_protected
language/de_DE/help/cat_options.html: write_protected
language/de_DE/install.lang.php: write_protected
language/de_DE/about.html: write_protected
language/fr_FR/admin.lang.php: write_protected
language/nb_NO/admin.lang.php: write_protected
language/uk_UA/admin.lang.php: write_protected
language/ca_ES/admin.lang.php: write_protected
language/ca_ES/help/photos_add_ftp.html: write_protected
language/fa_IR/admin.lang.php: write_protected
language/fa_IR/common.lang.php: write_protected
language/fr_CA/admin.lang.php: write_protected
language/zh_TW/admin.lang.php: write_protected
language/hu_HU/admin.lang.php: write_protected
language/pl_PL/admin.lang.php: write_protected
language/cs_CZ/admin.lang.php: write_protected
language/lv_LV/admin.lang.php: write_protected
language/tr_TR/upgrade.lang.php: write_protected
language/tr_TR/admin.lang.php: write_protected
language/tr_TR/common.lang.php: write_protected
language/ru_RU/admin.lang.php: write_protected
language/nl_NL/admin.lang.php: write_protected
language/pt_PT/admin.lang.php: write_protected
language/pt_PT/help/synchronize.html: write_error
language/en_UK/admin.lang.php: write_protected

I also have the similar issue when install new update plugin via webgui. I believe this is the same problem of auto upgrade.
I searched a while in this forum for this issue. There's some clues that change the files permission to 777 or 755. Should I chmod all files in piwigo folder to 777? I do not think this is a proper security practice. What's the necessary files permission that required for autoupgrade? Can you show me a list of file permission?
Thanks.

Offline

 

#2 2013-06-25 12:18:26

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Files permission for autoupgrade

Hello :-)

there should really be somewhere, may be on the install or update page, a clear explanation of what permissions are necessary/secure for automatic piuwigo install/update.

mine never works. Last time just now to upgrade to piwigo 2.5.2

I could not even make the upgrade mechanism work with 777 permissions (one file, I think obsolete something) could not be written.

my install works without problem on the apache piwigo folder and ftp upload. In fact "ftp upload" is dolphin fish upload, a variant of secure ftp (sftp) using ssh. Like this most of the files are owned by root, writable only by root and readable by anybody

as root, using

http://dodin.org/wiki/index.php?n=Photo … DeFichiers

works. but not for automatic update, even with wwwrun:www (apache) owner.

what would be nice would be a shell script setting the permissions (else, the chmod scans all the images, very long).

If I have a precise description of the permissions, I can even post the script :-)

thanks
jdd

Offline

 

#3 2013-06-25 12:54:59

flop25
Piwigo Team
2006-07-06
7037

Re: Files permission for autoupgrade

even with all the files/folders owned by the apache user?? That's strange Do you have any security module/daemon...?
So you can't install extensions too?

Do you or could try Wordpress to see if that's specific to Piwigo?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2013-06-25 13:18:43

jdd
Member
Toulouse (France)
2009-12-19
118

Re: Files permission for autoupgrade

I have wordpress and piwigo for several years now.

I never had problem with wordpress.

I often have permission problems with piwigo automatic update and, for example, it keeps right now saying there is a new piwigo and as soon as I clic on the link says that there are none. I just copied the new files over the old one, may bhe letting some old files, but deleting old files by hand I don't like, it's too easy to remove data by mistake. may be there is one lock/tag file I could remove to prvent this very minor hitch :-).

but this is not a question I want to really discuss, because I understand not many people own they own hosted server on openSUSE (kimsufi).

for me it would be enough to know what are the prefered permissions, I don't like to have any file as 777.

thanks
jdd

Offline

 

Board footer

Powered by FluxBB

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