0

I got a server with a few different domains on. Server is running ubuntu 18.04, php 7.4-fpm. My problem is that I can't seem to figure out how to set a local php.ini file for each domain, in case I need to change a few local variables.

1 Answer 1

0

All you need to do is create a php.ini file in each of the domain's document roots. For example, in public_html or any other document root, you can use a text editor to create and save a php.ini file, or from the command line type touch php.ini to create the file.

1
  • Thanks, but I tried this and no effect, so I was thinking I might need to point to this file in the sites nginx configuration file. Commented Mar 19, 2022 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .