if you go to your ubb threads control panel

click on "PHP Info" ( left side )

you will see which php.ini file is being loaded there

then edit that one