Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: PHP-FPM NGiNC Memory

$
0
0
Curious, but i just wanted to ask nearly the same.
Different sites say, that you must do following:

For individual website/php-pool/vhost:
- Change it in the php.ini
- Change it in www.conf (php-pool)
- Change it in the nginx-vhost-file

For global (all) the same except the last. There you must edit the main nginx.conf instead.

I dont understand, why you must edit it in the php-pool-file AND in the vhost-file.
My vhost uses a specific pool-file, so i just added the following there:
"php_admin_value[memory_limit] = 1024M"
and thats it. I've tested it and it works!

So i would ask, can anyone explain me, why i should edit the vhost and php.ini too?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>