T
T
Twelfth Doctor2017-10-29 21:09:00
linux
Twelfth Doctor, 2017-10-29 21:09:00

How can I set php.ini for each user?

Hello. Can you please tell me how to set the location of the php.ini file for the user?
The server works in Nginx + PHP-FPM and Apache + PHP-FPM mode
It is advisable to do this in the php-fpm pool.
Also can you tell me how to do this if the server is running in Apache + mod_php mode?
Let me explain what I'm talking about:
I have a web user with a home directory /home/web
And his php.ini file should be in /etc/php/settings/web.ini

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2017-10-29
@andrey004

the necessary settings for specific workers are specified in the corresponding configs in /etc/php/fpm/pool.d/
directives php_flag, php_admin_value, etc.
1 config -- 1 user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question