xeoncross / lowendscript

Bash scripts to set up/bootstrap low end virtual servers
325 stars 100 forks source link

Restore PHP memory limit to 128MB #31

Closed esemeniuc closed 9 years ago

esemeniuc commented 9 years ago

Also increase post and upload max file size to 256MB

xeoncross commented 9 years ago

So, lets talk about this.

On the one hand this is a bit much for a lowendbox - on the other hand, nginx should be where you are limiting upload/post size. By the time it's reached PHP you have just wasted a lot of resources.

Any thoughts?

esemeniuc commented 9 years ago

Well I've ran into situations where uploading a .zip photo dump into some php applications bump into the max post or upload size. The 256MB change can be ignored, and left at 200MB, I just thought those were nice round numbers. About the 36MB php memory limit , I've had issues with Wordpress backup plugins erroring out until the 128MB php memory limit has been reset (from 36MB).

xeoncross commented 9 years ago

Ugh, wordpress.

Enough said.