{"id":142,"date":"2012-03-15T17:34:09","date_gmt":"2012-03-15T17:34:09","guid":{"rendered":"http:\/\/codebangers.com\/?p=142"},"modified":"2014-08-22T09:57:09","modified_gmt":"2014-08-22T13:57:09","slug":"increase-phps-file-upload-limit-using-php-ini","status":"publish","type":"post","link":"https:\/\/codebangers.com\/increase-phps-file-upload-limit-using-php-ini\/","title":{"rendered":"Increase PHP\u2019s File Upload Limit Using php.ini"},"content":{"rendered":"<p>We all run into this on a daily basis. That&#8217;s why I had to add this one for sure.<\/p>\n<p>&nbsp;<\/p>\n<p>First things first, let&#8217;s open up a terminal and edit your php.ini file.<\/p>\n<p>I normally gedit for my personal preference. \u00a0This is assuming you have a GUI of some sort. Such as: \u00a0Gnome, Xubuntu, Kubuntu, blah blah. \u00a0In the case you don&#8217;t have a GUI obviously you are going to have to use Gedit or VIM or something like that.<\/p>\n<p>moving on.<\/p>\n<p>type this into your terminal<\/p>\n<p><code><br \/>\nsudo gedit \/etc\/php5\/apache2\/php.ini<\/code><br \/>\nOnce it&#8217;s opened find the line that says\u00a0\u00a0\u00a0<code>upload_max_filesize<\/code><\/p>\n<p>&nbsp;<\/p>\n<p><code> file_uploads = On<br \/>\nupload_max_filesize = 10M<\/code><\/p>\n<p>Eureka!! \u00a0Now you can change it to what you like<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Side Note:<\/strong> \u00a0For those of you using forms to upload your files. \u00a0You might want to read this as well. \u00a0By default the php.ini files restrict post uploads to 8 meg. \u00a0Find the line that says<\/p>\n<p><code>post_max_size = 8M<\/code><\/p>\n<p>Change that to whatever you wish. \u00a0I hope this helps. \u00a0Feel free to ask questions below if you have trouble.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all run into this on a daily basis. That&#8217;s why I had to add this one for sure. &nbsp; First things [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":41,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":5,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":1902,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/posts\/142\/revisions\/1902"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/media\/41"}],"wp:attachment":[{"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codebangers.com\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}