[Mono-list] Apache+mod_mono: Auto generated encryption keys not saved error
uli at xdt.com.au
Wed Jan 25 03:33:37 UTC 2012
On 25/01/2012 13:39, James Wright wrote:
> Thanks for your reply Gonzalo, however I couldn't find the "registry"
> directory anywhere on the file system. There is no "/etc/mono" but there
> is a "/etc/opt/novell/mono/" directory which contains "2.0" and "4.0"
> directories which contain the machine.configs.
> I tried creating a "registry" directory at
> "/etc/opt/novell/mono/registry" and allowing all read/write/execute for
> everyone on it. Mono then created a single file called "last-btime" in
> that folder but the same security exception is still present in the
> apache error logs! :-(
Making that location writable to everyone is a Bad Thing.
We've seen these errors as well. Mono wants to write them to the home
directory of the executing user, most likely apache.
What we've ended up doing is to create a ".mono" directory in the apache
home directory (usually /var/www on CentOS) and make that writable to
mkdir -p ~apache/.mono
chown -R apache:apache ~apache/.mono
chmod u+rw ~apache/.mono
Hope this helps,
More information about the Mono-list