<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Optimize_VPS_webserver_with_low_memory_RAM</id>
	<title>Optimize VPS webserver with low memory RAM - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://etcwiki.org/index.php?action=history&amp;feed=atom&amp;title=Optimize_VPS_webserver_with_low_memory_RAM"/>
	<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Optimize_VPS_webserver_with_low_memory_RAM&amp;action=history"/>
	<updated>2026-04-29T05:26:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://etcwiki.org/index.php?title=Optimize_VPS_webserver_with_low_memory_RAM&amp;diff=3673&amp;oldid=prev</id>
		<title>Ddxfish at 15:48, 25 July 2015</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Optimize_VPS_webserver_with_low_memory_RAM&amp;diff=3673&amp;oldid=prev"/>
		<updated>2015-07-25T15:48:58Z</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;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:48, 25 July 2015&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-l1&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=&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;This guide is to help run a VPS with 512MB RAM as a webserver. The default settings in Apache/PHP/MySQL are not optimized for a VPS much less one with 512MB RAM. This guide will reduce your overall memory usage of your LAMP server.&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;This guide is to help run a VPS with 512MB RAM as a webserver. The default settings in Apache/PHP/MySQL are not optimized for a VPS much less one with 512MB RAM. This guide will reduce your overall memory usage of your LAMP server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;If you are still using 512MB VPS you should switch. This guide is now defunct&#039;&#039;&#039;&lt;/ins&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;&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;/table&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
	<entry>
		<id>http://etcwiki.org/index.php?title=Optimize_VPS_webserver_with_low_memory_RAM&amp;diff=3374&amp;oldid=prev</id>
		<title>Ddxfish at 21:07, 8 April 2014</title>
		<link rel="alternate" type="text/html" href="http://etcwiki.org/index.php?title=Optimize_VPS_webserver_with_low_memory_RAM&amp;diff=3374&amp;oldid=prev"/>
		<updated>2014-04-08T21:07:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This guide is to help run a VPS with 512MB RAM as a webserver. The default settings in Apache/PHP/MySQL are not optimized for a VPS much less one with 512MB RAM. This guide will reduce your overall memory usage of your LAMP server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Apache==&lt;br /&gt;
CentOS location: &amp;#039;&amp;#039;&amp;#039;/etc/httpd/conf/httpd.conf&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Change the settings for the prefork module &lt;br /&gt;
 &amp;lt;IfModule prefork.c&amp;gt;&lt;br /&gt;
 StartServers 1&lt;br /&gt;
 MinSpareServers 1&lt;br /&gt;
 MaxSpareServers 4&lt;br /&gt;
 ServerLimit      15&lt;br /&gt;
 MaxClients       15&lt;br /&gt;
 MaxRequestsPerChild 2000&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PHP==&lt;br /&gt;
CentOS PHP config location: &amp;#039;&amp;#039;&amp;#039;/etc/php.ini&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Change max memory limit (use 96MB for heavy php sites)&lt;br /&gt;
 memory_limit = 64M&lt;br /&gt;
&lt;br /&gt;
*Change max execution time&lt;br /&gt;
 max_execution_time = 60&lt;br /&gt;
&lt;br /&gt;
*Change max input time&lt;br /&gt;
 max_input_time = 60&lt;br /&gt;
&lt;br /&gt;
*Change max upload size&lt;br /&gt;
 upload_max_filesize = 16M&lt;br /&gt;
&lt;br /&gt;
*Change max upload size&lt;br /&gt;
 post_max_size = 16M&lt;br /&gt;
&lt;br /&gt;
*Disable PHP safemode&lt;br /&gt;
 safe_mode = Off&lt;br /&gt;
&lt;br /&gt;
*Disable MySQL safemode&lt;br /&gt;
 sql.safe_mode = Off&lt;br /&gt;
&lt;br /&gt;
*Enable zlib Compression (compresses site output)&lt;br /&gt;
 zlib.output_compression = On&lt;/div&gt;</summary>
		<author><name>Ddxfish</name></author>
	</entry>
</feed>