Changing Maximum Upload Size in WP with LEMP
-
Hi Guv, I am running both the stackscripts, you just recently added like 10 Minutes Lucid 10.04 and wp stackscript. I am successfully running my wordpress blogs on my linode 360 plan with your guidelines. I think you have included php-fpm in that vps stackcript. I want to upload exported wordpress rss file size of more than 2mb (approximate 20mb size). I am totally lost to do this. Don't know where to change the file size as there is not conventional php.ini file here in the php-fpm. Please guide me. It is of urgent in nature.
ThanksPosted 1 year ago # -
hey getreal .. you need to specify a php variable .. no biggie, paste this, providing your user's password when asked and changing the 10M to however big or small you want the max upload size to be (here it's set for 10mB max):-
sudo -i
echo 'upload_max_filesize = 10M' >> /etc/php/php.ini
/etc/init.d/php-fpm restart
exitPosted 1 year ago # -
Hi Guv, I have followed that and restarted even my server as well as rebooted the linode, still I am getting the "413 Request Entity Too Large" while trying to upload wxr file of less than the size what i specifed in upload_max_filesize. Do I need to change somewhere in nginx.conf? Please look into this.
Posted 1 year ago # -
I have killed the issue of "413 Re.....Large" after adding "client_max_body_size 10m;" after this line
http {
include conf/mime.types;
default_type application/octet-stream;in my nginx.conf file
It is now working fine. Please guide me if you have anything else in your mind
Thanks
Posted 1 year ago # -
Thanks that worked for me too.
Posted 1 year ago # -
Finding the right php.ini file turned out to be the key in my case.
If you check phpinfo
(put <?php phpinfo(); ?> in a file in your public html folder and open in a browser)
It'll show all the places it's looking for php.ini files.In my case, the right one to edit turned out to be /etc/php5/fpm/php.ini
Then restart php
(No need to restart nginx or server)Posted 10 months ago # -
Correction: still had to add the line a couple posts up to nginx.conf
Then restart nginxIf you're like me and can't remember/don't know where the nginx.conf file is, in my case it was in usr/local/nginx/conf
Posted 10 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
