How to disable local php.ini

Started by arabgenius, September 29, 2019, 08:41:47 PM

Previous topic - Next topic

arabgenius

Hello
I have problem with local php.ini ( user-defined php.ini )
I could not disable it
I tried putting blank value but still loading (   /home/XXXX/public_html/php.ini )

how can I disable this file from keeping load every time ?

evansa

in the  /home/XXXX/public_html/ run the following command

mv php.ini php.ini.orig

arabgenius

#2
Quote from: evansa on September 30, 2019, 09:29:24 PM
in the  /home/XXXX/public_html/ run the following command

mv php.ini php.ini.orig

I mean disable it completely not moving file or renaming it
and I tried to edit user-defined php.ini file name and leave it blank in ( main php.ini ) but did not work

thenob

in your admin-panel php.ini-configuration, or just edit /usr/local/php/php.ini

change
; To disable this feature set this option to empty value
;user_ini.filename =

to
; To disable this feature set this option to empty value
user_ini.filename =