top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

does an php.ini setting established in one subdomain of my site affect those ini settings outside of that subdomain?

+2 votes
590 views

Can someone give me an understanding of how the .ini settings are located and combined? I am under the impression that there is a full settings .ini file somewhere up high in my host's server tree and that
any settings I create in .ini files in each of my domain folders are appended/updated against the 'main' ini settings to give me a 'current' group of php.ini settings.

What I'm looking to find out is does an ini setting established in a test subdomain of my site affect those ini settings outside of my test subdomain?

posted Oct 8, 2013 by Meenal Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here:
http://www.php.net/manual/en/configuration.file.per-user.php

Please be aware, that the ini-file is not re-read on every request, but after a defined time. Neither are all settings changeable in those per-user ini-files.

Read also the other pages in this chapter, they're good to keep in mind ;)

If you're now calling the script from a webserver, you called by requesting a page on a subdomain or a top-level-domain, doesn't matter.

answer Oct 8, 2013 by Majula Joshi
I need more!
1 - the doc you mentioned refers to 'user.ini'. Does that literally  mean the file is called 'USER.ini'? I have been placing my .ini  overrides/settings in each of my folders under the name 'php.ini'. Do I  have to change them all because it seems that they are working fine.

2 - I didn't understand your last paragraph.
Similar Questions
+10 votes

I want to save a password in encrypted form, so that it will not be understand by human. Is it possible ? If yes then please explain briefly.

0 votes

I am placing this in my php.ini file but it has no effect
memory_limit = 128M
session.gc_maxlifetime = 22440
max_execution_time = 1600
max_input_time = 1600
max_input_nesting_level = 64
both on php.ini and php5.ini

still with phpinfo() I see
max_execution_time 30 30

...