<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sky Rocket Inc. &#187; log files</title>
	<atom:link href="http://www.skyrocketonlinemarketing.com/tag/log-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skyrocketonlinemarketing.com</link>
	<description>Online Marketing</description>
	<lastBuildDate>Sat, 17 Jul 2010 12:07:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Rotate Apache log files on Ubuntu Hardy Heron server</title>
		<link>http://www.skyrocketonlinemarketing.com/rotate-apache-log-files-on-ubuntu-hardy-heron-server/</link>
		<comments>http://www.skyrocketonlinemarketing.com/rotate-apache-log-files-on-ubuntu-hardy-heron-server/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 09:04:04 +0000</pubDate>
		<dc:creator>JC</dc:creator>
				<category><![CDATA[Settings]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[log files]]></category>

		<guid isPermaLink="false">http://www.skyrocketonlinemarketing.com/?p=270</guid>
		<description><![CDATA[Ubuntu Hardy Heron Server comes pre-installed with a program called logrotate.d. Once you understand how this works log rotation for your Virtual Hosts is easy. First, edit the log rotation parameters: sudo nano /etc/logrotate.d/apache2 The standard contents of this file is: /var/log/apache2/*.log { weekly missingok rotate 52 compress delaycompress notifempty create 640 root adm sharedscripts [...]<p>Post from: <a href="http://skyrocketonlinemarketing.com">Sky Rocket</a><br/><br/><a href="http://www.skyrocketonlinemarketing.com/rotate-apache-log-files-on-ubuntu-hardy-heron-server/">Rotate Apache log files on Ubuntu Hardy Heron server</a></p>



Related posts:<ol><li><a href='http://www.skyrocketonlinemarketing.com/ubuntu-server-distro-directupgrade/' rel='bookmark' title='Permanent Link: Ubuntu server distro direct-upgrade'>Ubuntu server distro direct-upgrade</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/how-to-change-time-zone-on-a-linux-server/' rel='bookmark' title='Permanent Link: How to change time-zone on a Linux server'>How to change time-zone on a Linux server</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/howto-backup-and-restore-your-system-ubuntu-forums/' rel='bookmark' title='Permanent Link: Howto: Backup and restore your system! &#8211; Ubuntu Forums'>Howto: Backup and restore your system! &#8211; Ubuntu Forums</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/slicehost-a-quick-fun-way-to-learn-linux-server-administration/' rel='bookmark' title='Permanent Link: Slicehost: a quick, fun way to learn Linux server administration'>Slicehost: a quick, fun way to learn Linux server administration</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Ubuntu Hardy Heron Server comes pre-installed with a program called logrotate.d. Once you understand how this works log rotation for your Virtual Hosts is easy.</p>
<p>First, edit the log rotation parameters:</p>
<p><code>sudo nano /etc/logrotate.d/apache2</code></p>
<p>The standard contents of this file is:</p>
<p><code>/var/log/apache2/*.log {<br />
weekly<br />
missingok<br />
rotate 52<br />
compress<br />
delaycompress<br />
notifempty<br />
create 640 root adm<br />
sharedscripts<br />
postrotate<br />
if [ -f /var/run/apache2.pid ]; then<br />
/etc/init.d/apache2 restart &gt; /dev/null<br />
fi<br />
endscript<br />
}</code></p>
<p>I simply copy and paste this function and change the initial path in the first line and link it to my Apache log files in whatever Virtual Host I want to work with. You can also modify the other parameters for more or less frequent rotation. Full instructions can be found in the logrotate manual:</p>
<p><code>man logrotate</code></p>
<p>The logorotate file is run daily by the crontab at 6.25 AM, if you need to change this type you need to edit the crontab file:</p>
<p><code>sudo nano /etc/crontab</code></p>
<p>Easy!</p>
<p>Post from: <a href="http://skyrocketonlinemarketing.com">Sky Rocket</a><br/><br/><a href="http://www.skyrocketonlinemarketing.com/rotate-apache-log-files-on-ubuntu-hardy-heron-server/">Rotate Apache log files on Ubuntu Hardy Heron server</a></p>


<p>Related posts:<ol><li><a href='http://www.skyrocketonlinemarketing.com/ubuntu-server-distro-directupgrade/' rel='bookmark' title='Permanent Link: Ubuntu server distro direct-upgrade'>Ubuntu server distro direct-upgrade</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/how-to-change-time-zone-on-a-linux-server/' rel='bookmark' title='Permanent Link: How to change time-zone on a Linux server'>How to change time-zone on a Linux server</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/howto-backup-and-restore-your-system-ubuntu-forums/' rel='bookmark' title='Permanent Link: Howto: Backup and restore your system! &#8211; Ubuntu Forums'>Howto: Backup and restore your system! &#8211; Ubuntu Forums</a></li>
<li><a href='http://www.skyrocketonlinemarketing.com/slicehost-a-quick-fun-way-to-learn-linux-server-administration/' rel='bookmark' title='Permanent Link: Slicehost: a quick, fun way to learn Linux server administration'>Slicehost: a quick, fun way to learn Linux server administration</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyrocketonlinemarketing.com/rotate-apache-log-files-on-ubuntu-hardy-heron-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
