{"id":769,"date":"2021-07-02T15:29:16","date_gmt":"2021-07-02T15:29:16","guid":{"rendered":"https:\/\/apressthemes.com\/help\/?post_type=docs&#038;p=769"},"modified":"2021-07-02T15:29:16","modified_gmt":"2021-07-02T15:29:16","password":"","slug":"installation-issue-max-upload-file-size","status":"publish","type":"docs","link":"https:\/\/apressthemes.com\/help\/docs\/installation-issue-max-upload-file-size\/","title":{"rendered":"Installation issue &#8211; Max upload file size"},"content":{"rendered":"<p>One of most common issues during theme installation is \u201cAre you sure you want to do this ?\u201d. Usually this error happens when you try to upload a zip file that is larger than maximum upload file size.<\/p>\n<p>Many servers limit maximum upload file size to 10MB, because uploading large files might cause different issues on servers. There are several ways to increase maximum file size and we will read about most common ways to do that in this article.<\/p>\n<p>Before trying any of these methods, please make sure you have ftp access to your server. So you can revert back your modifications if something went wrong.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">How I can check my server max upload file size?<\/span><\/p>\n<ol>\n<li>Please login to your WordPress<\/li>\n<li>Click on \u201cMedia &gt; Add New\u201d<\/li>\n<li>Here you can see the maximum upload file size on your WordPress installation<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-123\" src=\"http:\/\/wpblogtheme.org\/wp-content\/uploads\/2017\/06\/Screenshot_1-1024x315.jpg\" alt=\"\" width=\"1024\" height=\"315\" \/><\/p>\n<p><span class=\"wysiwyg-font-size-large\">1 \u2013 Increasing Max Upload File Size through \u201cFunctions.php\u201d file<\/span><\/p>\n<p>If you go to \u201cappearance -&gt; editor\u201d, you can find an environment that let you modify core files. Find and select \u201cfunctions.php\u201d file in right column. Now add the following code at end of file:<\/p>\n<p>@ini_set( &#8216;upload_max_size&#8217; , &#8217;64M&#8217; );<\/p>\n<p>@ini_set( &#8216;post_max_size&#8217;, &#8217;64M&#8217;);<\/p>\n<p>&nbsp;<\/p>\n<p>Now click on update file and check max upload file size.<\/p>\n<p>In some WordPress Installation editing core file in admin panel is disabled. If that\u2019s the case, you can use FTP client applications to modify that file.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">2 \u2013 Increasing Max Upload File Size through \u201cPHP.ini\u201d File<\/span><\/p>\n<p>Servers read PHP configurations from this file, so we want to create a new one and try changing max upload size.<\/p>\n<ol>\n<li>Connect to your website FTP server by any FTP client you like.<\/li>\n<li>Now go to root directory of WordPress installation ( where wp-config.php file is located ).<\/li>\n<li>Look for \u201cphp.ini\u201d file ( if it\u2019s not there, create a new one ) and add the following code:<\/li>\n<\/ol>\n<p>upload_max_filesize = 64M<\/p>\n<p>post_max_size = 64M<\/p>\n<p>&nbsp;<\/p>\n<p>Save your modifications. Now check max upload file size.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">3 &#8211; Increasing Max Upload File Size through \u201c.htaccess\u201d file <\/span><\/p>\n<p>Some servers accept \u201c.htaccess\u201d file modification.<\/p>\n<ol>\n<li>Connect to your website FTP server by any FTP client you like.<\/li>\n<li>Now go to root directory of WordPress installation ( where wp-config.php file is located ). Usually you will find that file but if you couldn\u2019t, please read following <a href=\"http:\/\/stackoverflow.com\/questions\/5004633\/how-to-manually-create-a-file-with-a-dot-prefix-in-windows-for-example-htacce\">stackoverflow question<\/a><\/li>\n<li>Add following code at the end of the file<\/li>\n<\/ol>\n<p>php_value upload_max_filesize 64M<\/p>\n<p>php_value post_max_size 64M<\/p>\n<p>&nbsp;<\/p>\n<p>Save your modifications. Now check max upload file size.<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"wysiwyg-font-size-large\">4 \u2013 VPS Servers <\/span><\/p>\n<p>Some users use their own VPS, please <a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-change-your-php-settings-on-ubuntu-14-04\">read following article<\/a> by Jon Schwenn from Digital Ocean to see how you can modify your server php.ini file.<\/p>\n<p>&nbsp;<\/p>\n<p>If none of those methods worked, please contact your host administrator. They will help you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of most common issues during theme installation is \u201cAre you sure you want to do this ?\u201d. Usually this error happens when you try to upload a zip file that is larger than maximum upload file size. Many servers&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[11],"doc_tag":[73],"class_list":["post-769","docs","type-docs","status-publish","hentry","doc_category-troubleshooting","doc_tag-max-upload-file-size-error"],"year_month":"2026-04","word_count":469,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"author_nicename":"tech_ac9x_hlp","author_url":"https:\/\/apressthemes.com\/help\/author\/tech_ac9x_hlp\/"},"doc_category_info":[{"term_name":"Troubleshooting","term_url":"https:\/\/apressthemes.com\/help\/docs-category\/troubleshooting\/"}],"doc_tag_info":[{"term_name":"Max upload file size error","term_url":"https:\/\/apressthemes.com\/help\/docs-tag\/max-upload-file-size-error\/"}],"author_list":[{"ID":"2","user_login":"tech_ac9x_hlp","display_name":"Apress Help","id":"2"}],"_links":{"self":[{"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/docs\/769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/comments?post=769"}],"version-history":[{"count":0,"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/docs\/769\/revisions"}],"wp:attachment":[{"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/media?parent=769"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/doc_category?post=769"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/apressthemes.com\/help\/wp-json\/wp\/v2\/doc_tag?post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}