moinwiki / moin-1.9

MoinMoin Wiki (1.9, also: 1.5a ... 1.8), stable, for production wikis
https://moinmo.in/
Other
140 stars 51 forks source link

cache permission errors in moin 1.9.10 / apache 2.2 / Centos6 #81

Closed robertosussex closed 3 years ago

robertosussex commented 3 years ago

raise CacheError(str(err)) [Wed Jun 09 13:21:55 2021] [error] [client 5.80.25.21] CacheError: [Errno 13] Permission denied: '/srv/www/wikis/epp/data/cache/epp/drafts/1502880486.68.42100123PhE.tmp'

When I tried to change some lines in a page and "save changes"

Any idea?

Thanks

Roberto

ThomasWaldmann commented 3 years ago

this is usually caused by inconsistent permissions.

e.g. if you run your moin web process as user "moin", but run moin cli commands as user "root".

just always use the same user/group as the moin web process runs as.

one time fixing mixed up permissions is via chown -R wanteduser.wantedgroup ....

robertosussex commented 3 years ago

Yes indeed! I had some directories with wrong ownership (root instaed of apache) etc I corrected it and now it is fine Many thanks