Nginx/PHP memory settings configuration for file uploads

May 24, 2014 4.3k views
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!
1 Answer
Have another answer? Share your knowledge.

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