The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 67241] EasyApache Messes with .htaccess

Discussion in 'EasyApache' started by Glexia, May 6, 2013.

  1. Glexia

    Glexia Member

    Joined:
    Aug 8, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    Refer to Thread http://forums.cpanel.net/f34/apache-php-recompile-htaccess-edited-103633.html

    Our htaccess code was edited

    from:
    AddHandler application/x-httpd-php .php .html

    to:
    # AddHandler application/x-httpd-php .php .html

    -
    If its edited our php include in html pages will not work.
    -

    I saw this thread and was wondering why EasyApache does this still? Why do we need a comment before these items when they are valid .htaccess instructions... Why are these items being changed?

    I look forward to a response.

    Regards,

    mbwmbw
     
  2. cPanelKevinS

    cPanelKevinS Member
    Staff Member

    Joined:
    Mar 7, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi @Glexia,

    This seems to be done by the update_php_mime_types script. EasyApache normally runs this script, but it can be prevented from doing so by running this command:

    touch /var/cpanel/easy_skip_update_php_mime_types

    I've opened a case to correct the root problem, but hopefully this workaround will help you out for now.
     
  3. Glexia

    Glexia Member

    Joined:
    Aug 8, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
  4. paulw91

    paulw91 Registered

    Joined:
    Aug 14, 2013
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi KevinS,

    We have this same issue, do you have somewhere that we can track the progress of the case?

    Are there any potential drawbacks from skipping updating of php mime types?

    Thanks and kind regards - Paul.
     
Loading...
Similar Threads - [Case 67241] EasyApache
  1. guldvog
    Replies:
    10
    Views:
    1,677

Share This Page