PDA

View Full Version : copyphpini DONT do it


vegasgwm
06-08-2006, 05:13 AM
In BH knowledgebase there is a nice tip how to copy the php.ini file to every subfolder. (e.g. if you want to overide BH php config in all subs)
If you plan to use it, THINK about it first.
I was hoping to solve some authentication problems and did it.
WRONG!:eek:
This trick puts the php.ini in ALL subfolders (also where it's not needed images/includes/etc....)
Turns out, some programs (e.g 4images gallery) did NOT like that plan a bit and just "crashed."
Well I guess I learned my lesson. Consider yourselves warned!

b.t.w. anyone know the REVERSE code for this, so i dont have to go delete that ****ed php.ini in every singe subfolder.

this was the copying code:
// system("find * -type d|xargs -i cp --verbose php.ini {}/.");

vegasgwm
06-08-2006, 05:51 AM
Boy is my face red:D
Let me reprase my last post:
if u gonna do it, WATCH what your doing.
Turns out, I copied the wrong php.ini file to all those subs. (the one on my box at home)
Its probably still best to copy the php file carefully, only in a few subs where you know what congif settings you want to override.
:cool:

siguie
06-09-2006, 04:10 AM
Hehe ok I was going to say I copied it through half of my subfolders and have found it extremely useful ... and some programs just don't run right without it.