Control Web Panel

WebPanel => PHP => Topic started by: arabgenius on September 29, 2019, 08:41:47 PM

Title: How to disable local php.ini
Post by: arabgenius on September 29, 2019, 08:41:47 PM
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 ?
Title: Re: How to disable local php.ini
Post by: 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
Title: Re: How to disable local php.ini
Post by: arabgenius on October 01, 2019, 09:33:25 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
Title: Re: How to disable local php.ini
Post by: thenob on February 11, 2020, 08:50:31 AM
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 =