I have created LAMP with 1 GB memory but I have got only 128 in php.ini, why?

March 31, 2016 328 views
LAMP Stack PHP Ubuntu 16.04

I have created LAMP with 1 GB memory but i have got only 128 ini php.ini, why?

1 Answer

I know I can change that, but I just want to know why default settings didn't set it. There is some recommend settings? So if my service support 1GB better if I will use 128 any way?

  • They didn't change it because it's practically impossible to know what setting you'll actually want it at, so using the reliable, known default from the distribution makes perfect sense.

  • It is done as a safety measure as some poorly written scripts can consume all the available memory on a server.

Have another answer? Share your knowledge.