Question

Nginx/PHP memory settings configuration for file uploads

  • Posted May 24, 2014

Hello,

My situation is the following: I have a web application in which users can upload pictures, which are handled by a PHP script using the GD library to make some transformations on the size and quality.

Because it took such a long time to process the files I decided to upgrade the VPS from the 512MB/1 core to 2GB/2 cores, and set the php memory_limit to 900MB (it is correctly set, I can see it with phpinfo()), but this hardly improved anything.

This made me think that there is probably something I should change concerning Nginx, but I cannot seem to figure out what it is (I have unsuccessfully researched a while already). The configuration I have on nginx is pretty much the default one, I barely changed anything since the installation.

Hopefully someone knows the solution or can point me to where to find it.

Thanks a lot in advance!

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.