<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">Hayk Saakian</title>
  <id>http://hayksaakian.postach.io/feed.xml</id>
  <updated>2016-09-06T04:06:45.651000Z</updated>
  <link href="http://hayksaakian.postach.io/" />
  <link href="http://hayksaakian.postach.io/feed.xml" rel="self" />
  <generator>Werkzeug</generator>
  <entry xml:base="http://hayksaakian.postach.io/feed.xml">
    <title type="text">How to fix Digital Ocean WordPress “The uploaded file exceeds the upload_max_filesize directive in php.ini” – Hayk Saakian</title>
    <id>https://hayksaakian.postach.io/post/how-to-fix-digital-ocean-wordpress-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-hayk-saakian</id>
    <updated>2016-09-06T04:06:45.651000Z</updated>
    <published>2016-09-06T04:06:40Z</published>
    <link href="https://hayksaakian.postach.io/post/how-to-fix-digital-ocean-wordpress-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-hayk-saakian" />
    <author>
      <name>Hayk Saakian</name>
    </author>
    <category term="uncategorized" />
    <category term="hayk-saakian" />
    <content type="html">&lt;div&gt;&lt;p&gt;How to fix Digital Ocean WordPress &amp;ldquo;The uploaded file exceeds the upload_max_filesize directive in php.ini&amp;rdquo; &amp;ndash; Hayk Saakian&lt;br&gt;&lt;/br&gt; &lt;a href=&quot;https://hayksaakianblog.wordpress.com/2016/09/06/how-to-fix-digital-ocean-wordpress-the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini/&quot;&gt;https://hayksaakianblog.wordpress.com/2016/09/06/how-to-fix-digital-ocean-wordpress-the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini/&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt; &lt;p&gt;I ran into this error when I was uploading a new theme to my blog. The issue is that the default memory limit for uploads is 2 MB when you use the 1 click wordpress install from digital ocean. It&amp;rsquo;s really easy to increase it to something reasonable like 8 MB.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;First, log into your server shell&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;code&gt;ssh &lt;a href=&quot;mailto:root@example.com&quot;&gt;root@example.com&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;then edit the config file for PHP&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;code&gt;sudo nano /etc/php5/apache2/php.ini&lt;/code&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;look for this line:&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;code&gt;upload_max_filesize = 2M&lt;/code&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/br&gt; &lt;img  src=&quot;https://i0.wp.com/www.hayksaakian.com/wp-content/uploads/2016/09/Screen-Shot-2016-09-05-at-7.49.13-PM-1024x585.png&quot;&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt; &lt;p&gt;wordpress php memory config&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;/div&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;and change it to this:&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;code&gt;upload_max_filesize = 8M&lt;/code&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;then press ctrl+x to close, and press Y at the prompt to save, then press enter to confirm.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;now, restart apache to load in the new changes.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;code&gt;sudo service apache2 restart&lt;/code&gt;&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;and that&amp;rsquo;s it! you&amp;rsquo;re done.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;Now you&amp;rsquo;re free to upload your larger themes and other files that wordpress would normally reject on digital ocean.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;The post &lt;a href=&quot;http://www.hayksaakian.com/fix-digital-ocean-wordpress-uploaded-file-exceeds-upload_max_filesize-directive-php-ini/&quot;&gt;How to fix Digital Ocean WordPress &amp;ldquo;The uploaded file exceeds the upload_max_filesize directive in php.ini&amp;rdquo;&lt;/a&gt; appeared first on &lt;a href=&quot;http://www.hayksaakian.com&quot;&gt;Hayk Saakian&lt;/a&gt;.&lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;div&gt;&lt;br&gt;&lt;/br&gt; &lt;blockquote&gt;&lt;a href=&quot;http://www.hayksaakian.com/fix-digital-ocean-wordpress-uploaded-file-exceeds-upload_max_filesize-directive-php-ini/&quot;&gt;How to fix Digital Ocean WordPress &amp;ldquo;The uploaded file exceeds the upload_max_filesize directive in php.ini&amp;rdquo;&lt;/a&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;/br&gt; &lt;p&gt;&lt;br&gt;&lt;/br&gt; &lt;!--//--&gt;&lt;![CDATA[//&gt;&lt;!--             !function(a,b){&quot;use strict&quot;;function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf(&quot;MSIE 10&quot;),h=!!navigator.userAgent.match(/Trident.*rv:11./),i=b.querySelectorAll(&quot;iframe.wp-embedded-content&quot;);for(c=0;c&lt;i.length;c++)if(d=i[c],!d.getAttribute(&quot;data-secret&quot;)){if(f=Math.random().toString(36).substr(2,10),d.src+=&quot;#?secret=&quot;+f,d.setAttribute(&quot;data-secret&quot;,f),g||h)a=d.cloneNode(!0),a.removeAttribute(&quot;security&quot;),d.parentNode.replaceChild(a,d)}else;}}var d=!1,e=!1;if(b.querySelector)if(a.addEventListener)d=!0;if(a.wp=a.wp||{},!a.wp.receiveEmbedMessage)if(a.wp.receiveEmbedMessage=function(c){var d=c.data;if(d.secret||d.message||d.value)if(!/[^a-zA-Z0-9]/.test(d.secret)){var e,f,g,h,i,j=b.querySelectorAll('iframe[data-secret=&quot;'+d.secret+'&quot;]'),k=b.querySelectorAll('blockquote[data-secret=&quot;'+d.secret+'&quot;]');for(e=0;e&lt;k.length;e++)k[e].style.display=&quot;none&quot;;for(e=0;e&lt;j.length;e++)if(f=j[e],c.source===f.contentWindow){if(f.removeAttribute(&quot;style&quot;),&quot;height&quot;===d.message){if(g=parseInt(d.value,10),g&gt;1e3)g=1e3;else if(~~g&lt;200)g=200;f.height=g}if(&quot;link&quot;===d.message)if(h=b.createElement(&quot;a&quot;),i=b.createElement(&quot;a&quot;),h.href=f.getAttribute(&quot;src&quot;),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener(&quot;message&quot;,a.wp.receiveEmbedMessage,!1),b.addEventListener(&quot;DOMContentLoaded&quot;,c,!1),a.addEventListener(&quot;load&quot;,c,!1)}(window,document);//--&gt;&lt;!]]&gt;&lt;br&gt;&lt;/br&gt; &lt;/p&gt;&lt;br&gt;&lt;/br&gt; &lt;/div&gt;&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt; &lt;a href=&quot;http://feeds.wordpress.com/1.0/gocomments/hayksaakianblog.wordpress.com/19/&quot;&gt;&lt;img  src=&quot;http://feeds.wordpress.com/1.0/comments/hayksaakianblog.wordpress.com/19/&quot;&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt; &lt;/a&gt; &lt;img  src=&quot;https://pixel.wp.com/b.gif?host=hayksaakianblog.wordpress.com&amp;blog=115561507&amp;post=19&amp;subd=hayksaakianblog&amp;ref=&amp;feed=1&quot;&gt;&lt;/img&gt;&lt;br&gt;&lt;/br&gt; &lt;br&gt;&lt;/br&gt;</content>
  </entry>
  <entry xml:base="http://hayksaakian.postach.io/feed.xml">
    <title type="text">Hayk Saakian</title>
    <id>https://hayksaakian.postach.io/post/hayk-saakian</id>
    <updated>2016-08-20T02:53:43.590000Z</updated>
    <published>2016-08-20T02:48:33Z</published>
    <link href="https://hayksaakian.postach.io/post/hayk-saakian" />
    <author>
      <name>Hayk Saakian</name>
    </author>
    <content type="html">&lt;div&gt;Strategic Marketing Consultant&lt;br clear=&quot;none&quot;/&gt;&lt;a shape=&quot;rect&quot; href=&quot;http://www.hayksaakian.com/&quot;&gt;http://www.hayksaakian.com/&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br clear=&quot;none&quot;/&gt;I am a strategic marketing consultant based on out Seattle Washington. My name is Hayk Saakian, and any business that would benefit from doubling yearly revenue should contact me. I consult businesses to accomplish marketing objectives using internet technology and digital channels. Cutting-edge repeatable marketing strategies are my specialty: from small 1-man-companies to larger firms, I can devise and implement online marketing tactics to generate repeat business and sustainable growth. &lt;br clear=&quot;none&quot;/&gt;&lt;br clear=&quot;none&quot;/&gt;&lt;a shape=&quot;rect&quot; href=&quot;http://about.me/hayksaakian&quot;&gt;http://about.me/hayksaakian&lt;/a&gt;&lt;br clear=&quot;none&quot;/&gt;&lt;br clear=&quot;none&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br clear=&quot;none&quot;/&gt;&lt;/div&gt;
</content>
  </entry>
</feed>
