Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to disable custom php.ini inside my shared hosting. I dont want to allow my clients to use it. I could block the usage of htaccess using allowverride but I cant see someway to block php.ini!

share|improve this question

1 Answer 1

up vote 2 down vote accepted

As stated in you have to disable custom php.ini in your main php.ini:

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

share|improve this answer
Than kyou sir! :) But I need to uncomment that line to disable php.ini? – amandanovaes Apr 23 '14 at 21:32
Yes the 'user_ini.filename = ' line. – Kovah Apr 23 '14 at 21:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.