http://www.privaterra.org/blog-rg/midgardblobdir-permission.html
Ever since my last system restore i’ve had a rather nagging error,
one which I couldn’t quite track down - that allowed me to use
Midgard, but not post pictures, upload attachments, nor write custom
data.
I wasn’t sure what the problem was - if it was a coding issue, a
style error, or something to do with the restored files. Well, after
weeks of looking and experimenting - I have finally narrowed down
exactly what the issue is, and yes how to fix it.
It seems that for some reason during the last disk restore the
permissions related to the Midgard Blob directory wasn’t set
properly. Consequently it needs to be fixed..
First, I looked in the config file @ /etc/midgard/apache/vhosts/ and
looked for the location of the MidgardBlobDir
[snipped]
MidgardBlobDir /var/lib/midgard/blobs/midgard
[snipped]
so it is set to /var/lib/midgard/blobs/midgard . I then execute the
following commands to set the permissions :
chown -R www-data:www-data /var/lib/midgard/blobs
chmod -R +rw /var/lib/midgard/blobs/midgard/
Then, i head back to midgard and try to upload a photo - and it
works! I try uploading an attachment to a blog entry , and it works
too! yeah!
So the lesson is learned - if there’s an error when uploading
attachments or pictures…investigate the permissions of the Blob
directory to make sure it is set correctly.
--
Robert Guerra <[EMAIL PROTECTED]>
Managing Director, Privaterra <http://www.privaterra.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]