From owner-p4-projects@FreeBSD.ORG Sun May 3 21:40:32 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 78F771065673; Sun, 3 May 2009 21:40:32 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AEA1106566C for ; Sun, 3 May 2009 21:40:32 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1E7CF8FC0C for ; Sun, 3 May 2009 21:40:32 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n43LeWOZ023030 for ; Sun, 3 May 2009 21:40:32 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n43LeWAw023028 for perforce@freebsd.org; Sun, 3 May 2009 21:40:32 GMT (envelope-from rene@FreeBSD.org) Date: Sun, 3 May 2009 21:40:32 GMT Message-Id: <200905032140.n43LeWAw023028@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rene@FreeBSD.org using -f From: Rene Ladan To: Perforce Change Reviews Cc: Subject: PERFORCE change 161507 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2009 21:40:33 -0000 http://perforce.freebsd.org/chv.cgi?CH=161507 Change 161507 by rene@rene_self on 2009/05/03 21:39:48 [solid-state] : tidy up the Apache section (5.4), note that the default is fine. Affected files ... .. //depot/projects/docproj_nl/en_US.ISO8859-1/articles/solid-state/article.sgml#13 edit Differences ... ==== //depot/projects/docproj_nl/en_US.ISO8859-1/articles/solid-state/article.sgml#13 (text+ko) ==== @@ -430,33 +430,44 @@ Apache Web Server - Apache keeps pid files and logs in - apache_install/logs. - Since this directory doubtless exists on a read-only filesystem, this + + The steps in this section are only necessary if Apache is + set up to write its pid or log information outside of + /var. By default, + Apache keeps its pid file in /var/run/httpd.pid and its log + files in /var/log. + + + It is now assumed that Apache keeps its log files in a + directory apache_log_dir + outside of /var. + Since these directories doubtlessly exist on a read-only filesystem, this will not work. It is necessary to add a new directory to the - /etc/rc.initdiskless list of directories to create - in /var, to link - apache_install/logs to + /etc/rc.d/var list of directories to create + in /var, and to link + apache_log_dir to /var/log/apache. It is also necessary to set permissions and ownership on this new directory. First, add the directory log/apache to the list of directories to be created in - /etc/rc.initdiskless. + /etc/rc.d/var. Second, add these commands to - /etc/rc.initdiskless after the directory creation + /etc/rc.d/var after the directory creation section: &prompt.root; chmod 0774 /var/log/apache &prompt.root; chown nobody:nobody /var/log/apache Finally, remove the existing - apache_install/logs + apache_log_dir directory, and replace it with a link: - &prompt.root; rm -rf (apache_install)/logs -&prompt.root; ln -s /var/log/apache (apache_install)/logs + &prompt.root; rm -rf apache_log_dir +&prompt.root; ln -s /var/log/apache apache_log_dir