Is it possible to have just a single php.ini file, for example in the webroot (or even outside of it to prevent people accessing it via GET), and tell PHP quickly and easily where it is?
I know you can set php.ini directives in .htaccess, but is it possible to define a specific php.ini file to be used?
Add this to your server configuration…
Make sure to just include the path to the directory, not the entire path to the file.
Then restart Apache.
Check it worked with
phpinfo().