Page 1 of 1

Override the standard php.ini

PostPosted: 24. October 2019 15:10
by torvista
Hi,
I update xampp very often and have to copy my customisations every time.

Is there a way to leave the distribution php.ini alone but include or use the values I wish to modify in a separate file, so I only need to copy that one each time?

thanks
Settve

Re: Override the standard php.ini

PostPosted: 24. October 2019 16:24
by Altrea
Hi,

Ini files do not support a functionality like including user defined ini files into the main one, like the Apache conf does.
If PHP is running in CGI mode you could have used .user.ini files which can be used per directory. For PHP running in Apache module mode (like XAMPP does) the recommend way would be overriding values with help of .htaccess files or php files.

Best wishes,
Altrea

Re: Override the standard php.ini

PostPosted: 24. October 2019 16:35
by torvista
Great,
thanks for the rapid reply.