Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    5

    Default easyapache3 removing AddHandler from .htaccess

    Greetings, having a strange problem after running easyapache -- the .htaccess files in certain accounts are getting the "AddHandler" line automatically commented out. This has happened on two different servers. Not all of the .htaccess files are affected either. It happened to only one account (of about 30) on the first server, and two accounts (of about 50) on the second.

    Can anyone shed some insight on this?

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Adjust the value for the following tweak setting:

    The maximum number of directories deep to look for .htaccess files when doing .htaccess checks. Can be from 0 to 100. 2 is the default setting. Values higher than this are discouraged.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    5

    Default

    Thanks for the response, but I don't see how the setting you mention has anything to do with my problem.

    Let me clarify, in case I wasn't specific enough in my initial post:

    All of my accounts have this line in their .htaccess:
    AddHandler application/x-httpd-php .html

    I ran easyapache, and when it completed that line was commented in out in one account's .htaccess:
    # AddHandler application/x-httpd-php .html

    The .htaccess files for all my other accounts were unchanged.

  4. #4
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Did you enable SuPhp when you used easyapache?
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    When the PHP handler is changed, the system is scanned for .htacess files that contain AddHandler entries. Ones that define an entry for handling PHP are commented out. This is done to prevent conflicts and other handling issues.

    To modify this behavior, change the tweak setting I mentioned in my prior post.

  6. #6
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by cpanelkenneth View Post
    When the PHP handler is changed, the system is scanned for .htacess files that contain AddHandler entries. Ones that define an entry for handling PHP are commented out. This is done to prevent conflicts and other handling issues.

    To modify this behavior, change the tweak setting I mentioned in my prior post.
    I thought that was the case, which is why I had asked if he had changed his to SuPhp.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Configure PHP and SuExec PHP5/4 addhandler issue
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-10-2011, 02:47 PM
  2. where is the AddHandler option in WHM?
    By SoftDux in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-19-2010, 01:46 AM
  3. need help AddHandler application/x-httpd-php .php .php4 .php3 .html
    By rustikat in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 03-03-2009, 06:01 PM
  4. MIMETypes/AddHandler Apache2, suPHP and PHP5
    By WireNine in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-03-2008, 12:13 PM
  5. Advice on php_flag AddHandler and Action
    By icemarkuk in forum New User Questions
    Replies: 5
    Last Post: 06-28-2005, 08:06 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube