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.

Preventing automated htaccess additions from taking a site down when using suexec?

Discussion in 'General Discussion' started by etcio, Apr 8, 2013.

  1. etcio

    etcio Member

    Joined:
    Mar 7, 2013
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I've been working on a Wordpress installation for a client, and have W3 Total Cache installed. I also have the New Relic daemon installed and configured through W3TC.

    The problem that I'm having is that it tries to set newrelic.appname using php_value in htaccess. This, of course causes the site to immediate get internal server errors. The proper place to put it is in the .user.ini file of course, and this can be done manually.

    However, when you are in W3TC, there is a warning that the newrelic settings aren't configured correctly (because they're commented out, or you've deleted them) and it will immediately revert them back without further action by the client.

    Effectively, if they click on that warning, the server goes down.

    Is there any way to prevent this behavior?
     
  2. tvcnet

    tvcnet Well-Known Member
    PartnerNOC

    Joined:
    Aug 15, 2003
    Messages:
    116
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Diego
    cPanel Access Level:
    DataCenter Provider
    Did you ever figure this one out?


     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It sounds like this is a flaw with the plugin for WordPress. You may want to consult with the developer to alert them of this issue.

    Thank you.
     
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    You could try this:
    Code:
    chmod 400 .htaccess
    
     
Loading...

Share This Page