Incredible Mag

How to Increase WordPress File Upload Limit in Moss.sh

<p>We have divided the tutorial into 2 parts&period;<&sol;p>&NewLine;<p><img class&equals;"aligncenter size-full wp-image-1068" src&equals;"https&colon;&sol;&sol;incrediblemag&period;com&sol;wp-content&sol;uploads&sol;2018&sol;12&sol;2018-12-16&lowbar;1457-e1544954247728&period;png" alt&equals;"" width&equals;"900" height&equals;"492" &sol;><&sol;p>&NewLine;<p>Here is a quick guide explaining on how to increase the default file upload limit &lpar;10MB&rpar; in WordPress sites which are installed via Moss&period;sh service&period;<&sol;p>&NewLine;<h2>Part 1&colon;<&sol;h2>&NewLine;<p>1&num; Log into your server as user <strong>moss<&sol;strong><&sol;p>&NewLine;<p><code>ssh moss&commat;yourserverip<&sol;code><&sol;p>&NewLine;<p>2&num; Run <code>sudo su<&sol;code><&sol;p>&NewLine;<p><img class&equals;"aligncenter size-full wp-image-1067" src&equals;"https&colon;&sol;&sol;incrediblemag&period;com&sol;wp-content&sol;uploads&sol;2018&sol;12&sol;2018-12-16&lowbar;1502-e1544954257818&period;png" alt&equals;"" width&equals;"600" height&equals;"382" &sol;><&sol;p>&NewLine;<p>3&num; Run <code>cd &sol;etc&sol;openresty&sol;<br &sol;>&NewLine;ls<&sol;code> and then press Return&period; Now you will be presented with files listed in the DIR&period; You will be able to see a file name mentioned server&lowbar;params&period;username<&sol;p>&NewLine;<p><img class&equals;"aligncenter size-full wp-image-1066" src&equals;"https&colon;&sol;&sol;incrediblemag&period;com&sol;wp-content&sol;uploads&sol;2018&sol;12&sol;2018-12-16&lowbar;1507-e1544954264146&period;png" alt&equals;"" width&equals;"600" height&equals;"206" &sol;><&sol;p>&NewLine;<p>4&num; Run<br &sol;>&NewLine;<code><br &sol;>&NewLine;cat server&lowbar;params&period;inspirefusion<br &sol;>&NewLine;<&sol;code><&sol;p>&NewLine;<p>Replace inspirefusion with your username&period; You should be able to see something like below&colon;<&sol;p>&NewLine;<p><img class&equals;"aligncenter size-full wp-image-1065" src&equals;"https&colon;&sol;&sol;incrediblemag&period;com&sol;wp-content&sol;uploads&sol;2018&sol;12&sol;2018-12-16&lowbar;1511-e1544954271230&period;png" alt&equals;"" width&equals;"700" height&equals;"408" &sol;><&sol;p>&NewLine;<p>5&num; Run<br &sol;>&NewLine;<code><br &sol;>&NewLine;cat server&lowbar;params&period;inspirefusion<br &sol;>&NewLine;<&sol;code><&sol;p>&NewLine;<p>Replace inspirefusion with your username&period; Then you&&num;8217&semi;ll be prompted for more input&period; Copy &amp&semi; paste below text if you want to increase your file upload limit to 25MB&colon;<&sol;p>&NewLine;<p><code>&num; Extra nginx params to be included in this site managed by Moss<br &sol;>&NewLine;&num; all directives below will be included within 'server' blocks<br &sol;>&NewLine;&num; common configs that you might want to fine-tune are given<&sol;code><&sol;p>&NewLine;<p>&num; Core module<br &sol;>&NewLine;&num; https&colon;&sol;&sol;nginx&period;org&sol;en&sol;docs&sol;http&sol;ngx&lowbar;http&lowbar;core&lowbar;module&period;html<br &sol;>&NewLine;&num;<&sol;p>&NewLine;<p>client&lowbar;max&lowbar;body&lowbar;size 25m&semi;<&sol;p>&NewLine;<p>&num; Gzip module<br &sol;>&NewLine;&num; https&colon;&sol;&sol;nginx&period;org&sol;en&sol;docs&sol;http&sol;ngx&lowbar;http&lowbar;gzip&lowbar;module&period;html<br &sol;>&NewLine;&num;<br &sol;>&NewLine;gzip on&semi;<br &sol;>&NewLine;gzip&lowbar;disable &&num;8220&semi;msie6&&num;8221&semi;&semi;<br &sol;>&NewLine;gzip&lowbar;comp&lowbar;level 5&semi;<br &sol;>&NewLine;gzip&lowbar;min&lowbar;length 256&semi;<br &sol;>&NewLine;gzip&lowbar;types application&sol;javascript application&sol;rss&plus;xml application&sol;x-javascript application&sol;xhtml&plus;xml application&sol;xml text&sol;css text&sol;javascript text&sol;plain text&sol;xml&semi;<br &sol;>&NewLine;EOF<&sol;p>&NewLine;<p>Press Return<&sol;p>&NewLine;<p>6&num; Check if the config file is as it should be&colon;<br &sol;>&NewLine;<code>cat server&lowbar;params&period;inspirefusion<&sol;code><br &sol;>&NewLine;Replace inspirefusion with your username&period;<&sol;p>&NewLine;<p>7&num; <code>exit<&sol;code><&sol;p>&NewLine;<h2>Part 2&colon;<&sol;h2>&NewLine;<p>1&num; sudo su<&sol;p>&NewLine;<p>2&num; cat &lt&semi;&lt&semi;EOF &gt&semi;&gt&semi; &sol;etc&sol;php&sol;7&period;2&sol;fpm&sol;conf&period;d&sol;99-extra&period;ini<code><&sol;code><br &sol;>&NewLine;You will be prompted for more input&colon;<&sol;p>&NewLine;<p>3&num; <code>upload&lowbar;max&lowbar;filesize &equals; 25M<br &sol;>&NewLine;post&lowbar;max&lowbar;size &equals; 25M<&sol;code><&sol;p>&NewLine;<p>EOF<&sol;p>&NewLine;<p>4&num; Verify changes&colon;<br &sol;>&NewLine;<code>cat &sol;etc&sol;php&sol;7&period;2&sol;fpm&sol;conf&period;d&sol;99-extra&period;ini<&sol;code><&sol;p>&NewLine;<p>5&num; Goto your moss&period;sh account and visit the sites section and select the site for which you just mades the above changes&period; Click &&num;8220&semi;reprovision&&num;8221&semi;<&sol;p>&NewLine;<p>&nbsp&semi;<&sol;p>&NewLine;<p>&nbsp&semi;<&sol;p>&NewLine;

Exit mobile version