Topic on Project:Support desk

[resolved] file permissions

5
Summary by MarkAHershberger

It is sometimes necessary to run maintenance scripts as the user who owns the files under images.

The1gofer (talkcontribs)

I keep running into issues with various thing not working due to file permissions. Is their a definative guide to what folders and files should be set to?

MarkAHershberger (talkcontribs)

The locations pointed to by $wpUploadDirectory, $wgCacheDirectory, and $wgTmpDirectory are about the only ones that should be writable. Some extensions need a writable directory (e.g. Widgets needs $IP/extensions/Widgets/compiled_templates/, and SemanticMediaWiki would like $smwgConfigFileDir to be writable), but that covers most of the cases.

But it is possible I've missed some. Do you see any missing?

The1gofer (talkcontribs)

@MarkAHershberger, Well I keep trying to run deleteArchivedFiles.php --delete and get Could not acquire lock on ffilename, skipping.

I can't really find anything, but it seems like a permissions issue.

MarkAHershberger (talkcontribs)

That sounds like you should run the script as whatever user owns the files under images.

The1gofer (talkcontribs)

that did it. thanks