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     [email protected]:/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
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to