[Mono-list] Apache+mod_mono: Auto generated encryption keys not saved error

James Wright james.wright at jigsawdezign.com
Wed Jan 25 12:58:41 UTC 2012

   Thanks Uli, that works perfectly!

   The auto-generated keys are now being stored at: 

   I've deleted the directory I created at 
"/etc/opt/novell/mono/registry" as it was just a test to see if it was 
going to write anything there! :-)

Thanks for your help,

On 25/01/2012 03:33, Uli Hertlein wrote:
> 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 user/group apache:
> mkdir -p ~apache/.mono
> chown -R apache:apache ~apache/.mono
> chmod u+rw ~apache/.mono
> Hope this helps,
> Cheers,
> /uli
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

More information about the Mono-list mailing list