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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.