user7987783
user7987783

Reputation:

When php.ini or .user.ini file is loaded on the server?

I am new to the world of web and want to know that when server default php.ini file, custom php.ini(that we created manually and added into per directory) file, .user.ini file is loaded/read by the server ?

According to my concept these files are loaded/read on each request or loaded/read on each process at the cgi.

Can anyone tell in easy words ?

Upvotes: 3

Views: 2004

Answers (1)

BenRoob
BenRoob

Reputation: 1722

Referring to the documentation, the default php.ini is loaded, when php is started. You can place your custom user.ini in the same location. Php is looking in default directories for all *.ini-files for including. You have to restart php whenever you apply changes to the configuration.

FYI, manual - the configuration file

Upvotes: 2

Related Questions