Config of php parameters in php.ini (difference between default and admin)
Posted: Sun Mar 08, 2009 3:26 pm
My host allows me to configure the values for php parameters in a local php.ini file.
Initially when I tried to create a php.ini file in the CMSMS root folder, the Site Admin->System Information page did not seem to reflect the settings in this ini file. For instance I set "output_buffering = 1", but the System Information page still reported "output_buffering = 0".
When I created my own test script in the root directory with a call to the phpinfo() function, the settings in the php.ini seem to be reflected there, so I was not sure what was going on with the System Information page.
I then copied the php.ini file into the admin folder - at that point the System Information page updated with the modified parameter values as per the php.ini file.
So it looks like (at least in my installation), I need to have a copy of the php.ini in both folders (I assumed that the scripts in /admin will inherit from the php.ini values in the root folder).
Question is - which php.ini is being processed for the front-end of the site? I'm assuming it is the one in the root folder. So even while the System Information page was not showing the right values, the site may have been running with the right values (in the case where I had the php.ini file in the root but not in /admin).
Can the CMCMS experts validate my assumption?
TIA
Initially when I tried to create a php.ini file in the CMSMS root folder, the Site Admin->System Information page did not seem to reflect the settings in this ini file. For instance I set "output_buffering = 1", but the System Information page still reported "output_buffering = 0".
When I created my own test script in the root directory with a call to the phpinfo() function, the settings in the php.ini seem to be reflected there, so I was not sure what was going on with the System Information page.
I then copied the php.ini file into the admin folder - at that point the System Information page updated with the modified parameter values as per the php.ini file.
So it looks like (at least in my installation), I need to have a copy of the php.ini in both folders (I assumed that the scripts in /admin will inherit from the php.ini values in the root folder).
Question is - which php.ini is being processed for the front-end of the site? I'm assuming it is the one in the root folder. So even while the System Information page was not showing the right values, the site may have been running with the right values (in the case where I had the php.ini file in the root but not in /admin).
Can the CMCMS experts validate my assumption?
TIA