<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Automated_Apache_Updates</id>
		<title>Automated Apache Updates - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Automated_Apache_Updates"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;action=history"/>
		<updated>2026-04-15T03:05:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2696&amp;oldid=prev</id>
		<title>DanielleM: /* Summary */</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2696&amp;oldid=prev"/>
				<updated>2015-08-06T18:35:25Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Summary&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:35, 6 August 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;By default, PHP and Apache updates are not automatic. This is mostly to prevent incompatibilities between major versions of these programs and your website's possibly outdated code. However, we can still enable automatic updates of ''minor'' versions in these two programs (i.e 5.4.'''21''' and 2.2.'''24'''). &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;By default, PHP and Apache updates are not automatic. This is mostly to prevent incompatibilities between major versions of these programs and your website's possibly outdated code. However, we can still enable automatic updates of ''minor'' versions in these two programs (i.e 5.4.'''21''' and 2.2.'''24''')&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Benefits of this include patching up discovered exploits, allowing the latest PHP code to be compatible, and generally optimizing how these two programs handle PHP requests&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Enabling Automatic Minor Version Updates==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Enabling Automatic Minor Version Updates==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DanielleM</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2695&amp;oldid=prev</id>
		<title>DanielleM: /* Enabling Automatic Minor Version Updates */</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2695&amp;oldid=prev"/>
				<updated>2015-08-06T18:34:08Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Enabling Automatic Minor Version Updates&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:34, 6 August 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once in your server, we're going to make a simple script that will run the command we need. Type the following and hit enter: nano apacheupdate.sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once in your server, we're going to make a simple script that will run the command we need. Type the following and hit enter: nano apacheupdate.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#This will bring you into a simple text editor. Here, we're going to type the following: /scripts/easyapache --build&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#This will bring you into a simple text editor. Here, we're going to type the following: /scripts/easyapache --build&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;#When you have this entered in, press control+O &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to save&lt;/del&gt;, then control+X to close the editor.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;#When you have this entered in, press control+O, then &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;enter, to save. Then press &lt;/ins&gt;control+X to close the editor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Now we're going to make this script executable. Type the following and hit enter: chmod +x apacheupdate.sh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Now we're going to make this script executable. Type the following and hit enter: chmod +x apacheupdate.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once this is done, we'll do the last step; adding the cron. Type the following and hit enter: crontab -e&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Once this is done, we'll do the last step; adding the cron. Type the following and hit enter: crontab -e&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DanielleM</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2694&amp;oldid=prev</id>
		<title>DanielleM: Created page with &quot;==Summary== &lt;br /&gt; By default, PHP and Apache updates are not automatic. This is mostly to prevent incompatibilities between major versions of these programs and your website'...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Automated_Apache_Updates&amp;diff=2694&amp;oldid=prev"/>
				<updated>2015-08-06T18:33:20Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Summary== &amp;lt;br /&amp;gt; By default, PHP and Apache updates are not automatic. This is mostly to prevent incompatibilities between major versions of these programs and your website&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Summary==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
By default, PHP and Apache updates are not automatic. This is mostly to prevent incompatibilities between major versions of these programs and your website's possibly outdated code. However, we can still enable automatic updates of ''minor'' versions in these two programs (i.e 5.4.'''21''' and 2.2.'''24'''). &lt;br /&gt;
&lt;br /&gt;
==Enabling Automatic Minor Version Updates==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Enabling updates is as simple as setting up a cron job in a SSH session. The steps to do this are below:&lt;br /&gt;
&lt;br /&gt;
#Connect to your server via SSH. Lost? [https://wiki.hostek.com/SSH_Access_-_Private_Servers Read our guide on how to do this here.]&lt;br /&gt;
#Once in your server, we're going to make a simple script that will run the command we need. Type the following and hit enter: nano apacheupdate.sh&lt;br /&gt;
#This will bring you into a simple text editor. Here, we're going to type the following: /scripts/easyapache --build&lt;br /&gt;
#When you have this entered in, press control+O to save, then control+X to close the editor.&lt;br /&gt;
#Now we're going to make this script executable. Type the following and hit enter: chmod +x apacheupdate.sh&lt;br /&gt;
#Once this is done, we'll do the last step; adding the cron. Type the following and hit enter: crontab -e&lt;br /&gt;
#Here you will be in another text editor with some lines already existing within. Hit enter to make a new line, then type the following exactly how it appears:&lt;br /&gt;
&amp;lt;pre&amp;gt;0 22 * * * /root/apacheupdate.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the above has been completed, press control+O, enter, then control+X to close just as before. That's it! Your Apache/PHP minor versions will update every night at 10pm server time.&lt;br /&gt;
&lt;br /&gt;
==Alternate Cron Configurations==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you'd like to set up a cron for different update schedules, follow the guide above but instead enter the following lines for their respective schedules:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Update every week on Sunday at 10pm:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;0 10 * * 6 /root/apacheupdate.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Update every night at 1:05am:'''&lt;br /&gt;
&amp;lt;pre&amp;gt;5 1 * * * /root/apacheupdate.sh&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>DanielleM</name></author>	</entry>

	</feed>