<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Apache2 Log Rotation not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055192#M137397</link>
    <description>I am running Apache 2.0.45 on HP-UX 11.11.&lt;BR /&gt;I am trying to implement log rotation with the&lt;BR /&gt;following directives (disregard line wrapping):&lt;BR /&gt;ErrorLog "|/opt/hpws/apache/bin/rotatelogs logs/error_log 86400"&lt;BR /&gt;CustomLog "|/opt/hpws/apache/bin/rotatelogs logs/access_log 86400" common&lt;BR /&gt;&lt;BR /&gt;The web server starts but no logs are created. If I use the simpler:&lt;BR /&gt;ErrorLog logs/error_log&lt;BR /&gt;CustomLog logs/access_log common&lt;BR /&gt;then logs are created as expected. How can I get log rotation to work and actually create logs?</description>
    <pubDate>Fri, 22 Aug 2003 18:29:24 GMT</pubDate>
    <dc:creator>Leon A. Howorth</dc:creator>
    <dc:date>2003-08-22T18:29:24Z</dc:date>
    <item>
      <title>Apache2 Log Rotation not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055192#M137397</link>
      <description>I am running Apache 2.0.45 on HP-UX 11.11.&lt;BR /&gt;I am trying to implement log rotation with the&lt;BR /&gt;following directives (disregard line wrapping):&lt;BR /&gt;ErrorLog "|/opt/hpws/apache/bin/rotatelogs logs/error_log 86400"&lt;BR /&gt;CustomLog "|/opt/hpws/apache/bin/rotatelogs logs/access_log 86400" common&lt;BR /&gt;&lt;BR /&gt;The web server starts but no logs are created. If I use the simpler:&lt;BR /&gt;ErrorLog logs/error_log&lt;BR /&gt;CustomLog logs/access_log common&lt;BR /&gt;then logs are created as expected. How can I get log rotation to work and actually create logs?</description>
      <pubDate>Fri, 22 Aug 2003 18:29:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055192#M137397</guid>
      <dc:creator>Leon A. Howorth</dc:creator>
      <dc:date>2003-08-22T18:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apache2 Log Rotation not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055193#M137398</link>
      <description>Tried to post didn't work due to trouble at this end....&lt;BR /&gt;&lt;BR /&gt;I rotate logs with a cron script.  The general flow is thus:&lt;BR /&gt;&lt;BR /&gt;mv access_log /home/logs&lt;BR /&gt;mv error_log /home/logs&lt;BR /&gt;&lt;BR /&gt;touch access_log&lt;BR /&gt;touch error_log&lt;BR /&gt;&lt;BR /&gt;repeat for all sub-sites/virtual hosts&lt;BR /&gt;&lt;BR /&gt;# restart httpd server&lt;BR /&gt;# for hp that is as follows:&lt;BR /&gt;/sbin/init.d/hpapache2 stop&lt;BR /&gt;/sbin/init.d/hpapache2 start&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Aug 2003 18:52:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055193#M137398</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-08-22T18:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Apache2 Log Rotation not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055194#M137399</link>
      <description>Try enable just the access log rotation, using standard error logging &amp;amp; see what shows up in the error_log.</description>
      <pubDate>Wed, 08 Sep 2004 11:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055194#M137399</guid>
      <dc:creator>Dan Wick</dc:creator>
      <dc:date>2004-09-08T11:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Apache2 Log Rotation not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055195#M137400</link>
      <description>rotatelogs requires a full path of logfiles:&lt;BR /&gt;&lt;BR /&gt;ErrorLog "|/opt/hpws/apache/bin/rotatelogs /opt/hpws/apache/logs/error_log 86400" should properly rotate your logs.&lt;BR /&gt;&lt;BR /&gt;fish</description>
      <pubDate>Wed, 08 Sep 2004 13:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/apache2-log-rotation-not-working/m-p/3055195#M137400</guid>
      <dc:creator>CSS2, IHL Dresden</dc:creator>
      <dc:date>2004-09-08T13:12:48Z</dc:date>
    </item>
  </channel>
</rss>

