Skip to main content

Disallow change php settings through php.ini or .htaccess file

Comments

5 comments

  • cPanelMichael
    Hello :) This is discussed on the following thread (assuming you are using suPHP): Default Methods to Increase Security on suPHP - Restricting who can use php.ini files Thank you.
    0
  • postcd
    Thx, i mean like these php directives? AddHandler, AddType to disallow
    0
  • Infopro
    [quote="postcd, post: 1687582">Thx, i mean like these php directives? AddHandler, AddType to disallow
    You'd need to actually read the thread for those details. Near this paragraph: [QUOTE]This is the better method in my opinion. At the bottom of /usr/local/lib/php.ini file, you can actually define individual user php.ini directives with the path to that user's application:
    I'm not sure what else you were hoping for cPanelMichael to do there for you.
    0
  • postcd
    i seen someone on the hosting abused these directives having them in .htaccess so i wanted trying to disable them somehow
    0
  • cPanelMichael
    You are likely looking to ensure the following entry exists in your Apache configuration file: AllowOverride None Documentation on making such changes is found here: Custom Directives Outside of a VirtualHost Tag Thank you.
    0

Please sign in to leave a comment.