Avatar ·

Where is the php.ini file located in Linux and how to find it?

Hello everyone! I'm a beginner PHP developer who switched from Windows to Linux (Ubuntu 20.04). On Windows, I was used to php.ini being in the PHP folder, and I could easily find it. But on Linux, I'm completely lost. I installed PHP via `apt install php`, but I can't figure out where it put the config. I tried to change `upload_max_filesize` for uploading files on the server, but I can't find the file. Here's my simple test script: ```php ``` I run it through the web server (Apache + PHP-FPM) and see in the `phpinfo()` output that `upload_max_filesize = 2M`. I want to increase it to 20M, but I don't know which file to change. I tried searching via terminal: `find / -name "php.ini" 2>/dev/null` — it finds 5 files! Which one is the correct one? Why are there several? And how do I figure out which one is being used?