[Mono-list] mod_mono running as apache user
Jaroslaw Kowalski
jaak@zd.com.pl
Sun, 8 Feb 2004 17:53:13 +0100 (CET)
Here's my idea of running mod_mono with apache2:
1. Create group "aspnet"
2. Create user "aspnet" with default group "aspnet"
3. Edit /etc/group and add user "apache" to group "aspnet"
4. Run mod_mono_server.exe as "aspnet"
5. restart apache.
This guarantees that the permissions will be ok after reboot and
regardless of the order of spawning mod_mono_server and apache.
I use this configuration along with SysV init script, which can
start,stop,restart mod_mono_server independently of the "httpd".
Jarek
On Sun, 8 Feb 2004, Marcel Pol wrote:
> On Sun, 08 Feb 2004 08:21:03 -0600
> Jim Erwin <mono@eyekahn.com> wrote:
>
> > In addition to setting permissions for the /tmp/mod_mono_server file,
> > you also have to set any files to be read and/or executed by the
> > application (AKA all your aspx files, your dll's etc...) and any files
> > to be simply read, like the Web.config etc... for your apache user.
>
> Thank you for your reply.
> All the files under /usr/share/doc/apache2-mod_mono-0.7/test are readable, and
> the dll's and exe's are executable, so I don't think it causes this. I did
> change the ownership of those files to apache:apache, but no change.
>
> Btw, when I connect, my cpu load goes to 100%, allthough there's no mono
> process listed in top. After some 10 seconds the mono server segfaults. I
> attached a strace, maybe that gives more insight to what happens?
>
>
> > On Sun, 2004-02-08 at 05:55, Marcel Pol wrote:
> > > Hello,
> > > I have mod_mono-0.7 up and running on Mandrake cooker (beta2) with
> > > apache2. I can run the mod-mono-server as root, and everything works fine.
> > > When I run it as user apache however, I get a 500 internal server error
> > > message. I did chmod 777 the /tmp/mod_mono_server file.
> > > I'd rather not run it as root though, so I'm wondering where I could look
> > > to get it working for the apache user.
>
>
> --
> Marcel Pol
>
>
>