How to Set Individual/Per-Domain php.ini Configurations for PHP-FPM

Share this post...Tweet about this on TwitterShare on Google+0Share on Facebook0
PHP-FPM users (which includes PHP versions included in the Multiple PHP Tool ) can create a per user php.ini file. This file must be located at /home/[unixuser]/domain/html/.user.ini or /home/unixuser/public_html/.user.ini

Set Up:

  1. Under /home/unixuser/domain/html (or /home/unixuser/public_html), create a file named .user.ini. Make sure that it is named literally .user.ini, not to be confused with the unixuser name
  2.  Edit the file to add the changes to be made. Example:

[root@project html]# pwd
/home/iwtestco/iwtest.com/html
[root@project html]# cat .user.ini
max_file_uploads = 15
[root@project html]#

Changes to php-fpm settings are a bit more limited than for SuPHP. More information is available here:  https://www.pair.com/support/kb/php-ini-vs-user-ini/
Jun 10, 2019, 11:41 amBy: InterWorx
How to Set Individual/Per-Domain php.ini Configurations for PHP-FPM
0 votes, 0.00 avg. rating (0% score)
(0) Comments

Leave a Reply
Surround code blocks with <pre>code</pre>

Your email address will not be published.

Comments

Broken Link