Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 94686 invoked from network); 25 Jul 2007 17:29:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 17:29:26 -0000 Received: (qmail 50920 invoked by uid 500); 25 Jul 2007 17:29:16 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 50903 invoked by uid 500); 25 Jul 2007 17:29:16 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 50892 invoked by uid 99); 25 Jul 2007 17:29:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 10:29:16 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [167.206.4.198] (HELO mta3.srv.hcvlny.cv.net) (167.206.4.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 10:29:14 -0700 Received: from [192.168.1.200] (ool-18b8b34a.dyn.optonline.net [24.184.179.74]) by mta3.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTP id <0JLQ000SIWK05AQ0@mta3.srv.hcvlny.cv.net> for users@httpd.apache.org; Wed, 25 Jul 2007 13:28:49 -0400 (EDT) Date: Wed, 25 Jul 2007 13:28:44 -0400 From: "Demetri T." In-reply-to: To: users@httpd.apache.org Message-id: <46A7884C.8060502@optonline.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <46A6ECC5.6020103@optonline.net> <4acbb5d00707250314q434dd9fclef5d0f529ba9aa1@mail.gmail.com> <46A76487.6080101@optonline.net> User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How in the name of LINUX do u set apache2.2 to run as user www-data Joshua Slive wrote: > On 7/25/07, Demetri T. wrote: > >> thats already set by default when i installed apache(which is >> www-data). I think i am having an issue either with file/directory >> permissions and/or on how Apache is starting up; it just stays running >> as root instead switching over to www-data (the user/group set when >> installed). >> >> I am having a hard time finding the requirements for apache to run as >> another user, would you or anyone know. i have checked the apache docs >> to no avail, and still searching the net. > > You are probably misinterpreting something, since apache will not run > as root without compile-time changes. > > There is supposed to be one (control) process running as root that > launches child processes running under the specified User/Group that > actually handle requests. > > Joshua. > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > Ok so looking at my proc list i see 6 apache process(only one with PID 1) and all of them running as root. Does that mean i need to compile apache with specific options? I looked over my apache setup this is what i have: apache is executed using the apache2 script in /etc/init.d the apache2 script then calls on apachectl in the /usr/bin directory apachectl then executes apache2 which is in the same directory I also went over my apache2.conf file and the user/group directives are listed as: user www-data group www-data I am still trying to find the permissions apache needs for the server root, document root, and log directory. any idea on this? Also if you know any good books that you can recommend i am all ears? Thanks for your help and time Demetri --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org