<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.blaxeen.com/index.php?action=history&amp;feed=atom&amp;title=Apache_log_rotate</id>
	<title>Apache log rotate - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blaxeen.com/index.php?action=history&amp;feed=atom&amp;title=Apache_log_rotate"/>
	<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;action=history"/>
	<updated>2026-04-18T14:47:08Z</updated>
	<subtitle>Historique des révisions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=770&amp;oldid=prev</id>
		<title>217.174.199.129 le 26 janvier 2011 à 17:24</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=770&amp;oldid=prev"/>
		<updated>2011-01-26T17:24:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 26 janvier 2011 à 17:24&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Ligne 54 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 54 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Script-Clara&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;software&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>217.174.199.129</name></author>
	</entry>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=448&amp;oldid=prev</id>
		<title>Admin le 30 mars 2009 à 11:00</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=448&amp;oldid=prev"/>
		<updated>2009-03-30T11:00:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 30 mars 2009 à 11:00&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Ligne 54 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 54 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Software&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Script-Clara&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=447&amp;oldid=prev</id>
		<title>Admin : Page créée avec « &lt;pre&gt; #!/bin/bash  DATE=`date &quot;+%Y%m%d&quot;` DATEOLD=`date --date=&#039;7 days ago&#039; &quot;+%d%m%Y&quot;` LOGDIR=/var/log/apache  # VÃ©rifie s&#039;il existe encore un process apache actif  functio... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.blaxeen.com/index.php?title=Apache_log_rotate&amp;diff=447&amp;oldid=prev"/>
		<updated>2009-03-30T11:00:05Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;pre&amp;gt; #!/bin/bash  DATE=`date &amp;quot;+%Y%m%d&amp;quot;` DATEOLD=`date --date=&amp;#039;7 days ago&amp;#039; &amp;quot;+%d%m%Y&amp;quot;` LOGDIR=/var/log/apache  # VÃ©rifie s&amp;#039;il existe encore un process apache actif  functio... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
DATE=`date &amp;quot;+%Y%m%d&amp;quot;`&lt;br /&gt;
DATEOLD=`date --date=&amp;#039;7 days ago&amp;#039; &amp;quot;+%d%m%Y&amp;quot;`&lt;br /&gt;
LOGDIR=/var/log/apache&lt;br /&gt;
&lt;br /&gt;
# VÃ©rifie s&amp;#039;il existe encore un process apache actif&lt;br /&gt;
&lt;br /&gt;
function apache_status&lt;br /&gt;
{&lt;br /&gt;
   apache_status=`ps -C apache -o pid=`&lt;br /&gt;
      if [ -n &amp;quot;${apache_status}&amp;quot; ]; then&lt;br /&gt;
       echo -e &amp;quot;Re-entring in apache_status process&amp;quot;          echo -e &amp;quot;PID : ${pid}&amp;quot;                for apache_pid in ${apache_status} ;&lt;br /&gt;
       #do             # killall apache&lt;br /&gt;
           echo -e &amp;quot;kill -9 ${apache_pid}&amp;quot;            kill -9 ${apache_pid}        done&lt;br /&gt;
              apache_status&lt;br /&gt;
   fi&lt;br /&gt;
&lt;br /&gt;
   echo -e &amp;quot;No more process Apache running\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/apache stop&lt;br /&gt;
sleep 5&lt;br /&gt;
apache_status&lt;br /&gt;
&lt;br /&gt;
cd /var/log/apache&lt;br /&gt;
&lt;br /&gt;
for logfile in access.log error.log www.wister.biz_access.log SSL.log ; do&lt;br /&gt;
&lt;br /&gt;
mv $logfile $logfile-$DATE&lt;br /&gt;
touch $logfile&lt;br /&gt;
chown root:adm $LOGDIR/$logfile&lt;br /&gt;
chmod 640 $LOGDIR/$logfile&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
/etc/init.d/apache start&lt;br /&gt;
&lt;br /&gt;
tar zcvf access.log-$DATE.tar.gz access.log-$DATE&lt;br /&gt;
tar zcvf error.log-$DATE.tar.gz error.log-$DATE&lt;br /&gt;
tar zcvf www.wister.biz_access.log-$DATE.tar.gz www.wister.biz_access.log-$DATE&lt;br /&gt;
tar zcvf SSL.log-$DATE.tar.gz SSL.log-$DATE&lt;br /&gt;
&lt;br /&gt;
rm access.log-$DATE.tar.gz&lt;br /&gt;
rm error.log-$DATE.tar.gz&lt;br /&gt;
rm www.wister.biz_access.log-$DATE.tar.gz&lt;br /&gt;
rm SSL.log-$DATE.tar.gz&lt;br /&gt;
&lt;br /&gt;
rm access.log-$DATEOLD.tar.gz&lt;br /&gt;
rm error.log-$DATEOLD.tar.gz&lt;br /&gt;
rm www.wister.biz_access.log-$DATEOLD.tar.gz&lt;br /&gt;
rm SSL.log-$DATEOLD.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:Software]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>