Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Cherokee crashing as non-root / unprivilidged user

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


rarvind at users

Oct 16, 2009, 2:11 PM

Post #1 of 3 (349 views)
Permalink
Cherokee crashing as non-root / unprivilidged user

Hello,

I am running freebsd
$ uname -a
FreeBSD shiva 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0: Wed Jun 24 00:57:44 UTC 2009 root [at] i386-builder:/usr/obj/usr/src/sys/GENERIC i386

Static html files are fine. But when i try to run a PHP file this is what i get.

$ sudo /usr/local/etc/rc.d/cherokee onestart
Starting cherokee.
Listening on port ALL:80, TLS
disabled, IPv6 disabled, using poll, 3520 fds system limit, max. 1753
connections, caching I/O, 5 threads, 350 connections per thread, standard
scheduling policy
PID 35351: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b localhost:47990' with uid=80, gid=80, env=custom
PID 35352: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b localhost:47990' with uid=80, gid=80, env=custom
Server is exiting..
PID 35351: exited re=0
PID 35352: exited re=0
PID 35340: exited re=0


I had configured php using the wizard. And I have specified the non privilidged user / group to be www.
Here is how i see the running process
www 35363 0.3 1.0 5868 2396 ?? S 3:09PM 0:00.05 /usr/local/sbin/cherokee-worker -C /usr/local/etc/cherokee/cherokee.conf
root 35362 0.2 0.5 4728 1360 ?? Ss 3:09PM 0:00.00 /usr/local/sbin/cherokee -C /usr/local/etc/cherokee/cherokee.conf -d


If I do not specify, www to be the credentials under which cherokee should run, then the cherokee-worker runs as root and everything runs fine. But this is not a secure/smart way to run the worker process as root.
Can anybody please tell me, if i have missed something, that is causing this behaviour ?

thanks
Arvind



From cricket scores to your friends. Try the Yahoo! India Homepage! http://in.yahoo.com/trynew
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


stefan at konink

Oct 16, 2009, 2:16 PM

Post #2 of 3 (317 views)
Permalink
Re: Cherokee crashing as non-root / unprivilidged user [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Arvind Rangan schreef:
> Static html files are fine. But when i try to run a PHP file this is what i get.
>
> $ sudo /usr/local/etc/rc.d/cherokee onestart
> Starting cherokee.
> Listening on port ALL:80, TLS
> disabled, IPv6 disabled, using poll, 3520 fds system limit, max. 1753
> connections, caching I/O, 5 threads, 350 connections per thread, standard
> scheduling policy
> PID 35351: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b localhost:47990' with uid=80, gid=80, env=custom
> PID 35352: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b localhost:47990' with uid=80, gid=80, env=custom
> Server is exiting..
> PID 35351: exited re=0
> PID 35352: exited re=0
> PID 35340: exited re=0

Can you start cherokee-worker, and maybe even gdb before it (+ bt after
the crash) so we can see where the crash is?


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkrY4p0ACgkQYH1+F2Rqwn2M/ACfTCoK1DVz6Ta3EpYiE5PUmGAq
UHwAn07aEd+D/cZFMgKoIJ2F9lDEHOkE
=/U7e
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


stefan at konink

Oct 16, 2009, 8:38 PM

Post #3 of 3 (314 views)
Permalink
Re: Cherokee crashing as non-root / unprivilidged user [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

http://code.google.com/p/cherokee/issues/detail?id=606&start=100


Problem is reported there.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkrZPDYACgkQYH1+F2Rqwn2i7QCeJJjS43tOYj5Gbej62fxz02da
qVQAnjI7bBNH6IzsnCOXHIydJLVX9NJF
=2Vf4
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.