Ripefruit

  • About Us
    • About Us
      • Acceptable Use
      • Privacy Policy
      • T & C
    • Contact Ripefruit
    • In Progress
    • Not For Profit
    • Partners
  • What We Do!
    • Advertising
    • Publications
    • Web Design
  • Clients
    • Billing
    • Client Login
    • Resources
      • Friends
      • Service Status
    • Support
  • IT Talk
    • Domain Names
    • Hosting
    • Internet
    • Search
    • Services
    • Software
    • Technical
  • Contact Us
    • Contact Us
    • Site Map
You are here: Home / IT Talk / Technical / How to stop cpanel changing htaccess

How to stop cpanel changing htaccess

cPanel in it’s wisdom are updating htaccess files changing the package type, in our experience “ea-php52” package to “ea-php56”.

cpanel forums confirms the modification is part of a regular update to users code.

In our case, all it did was break our website causing 500 server errors.

Yes, we can access cpanel/file manager/public_html/.htaccess then change the package back.. but, it means the website has been down until these changes are made.

Furious cpanel users have expressed their frustration: cPanel alters htaccess files

The issue is described here: cpanel.net

Cpanel have responded here with benny@cpanel.net saying: To clarify for everyone: any edits that are actually causing websites to break need to be reported to our support team, so that we can accomadate and account for them. The edits to the .htaccess files should *never* take a website offline, and if they are then it absolutely IS a bug.

.htaccess FIX

Deny cPanel access to .htaccess

Prevent Easyapache . htaccess File Modification

  • Login to WHM.
  • Navigate to “Server Configuration”.
  • Go to “Tweak settings”.
  • Select the option “System”.
  • Set “Depth to recurse for . htaccess checks” to 0.
  • Click the button ‘Save’.

# php — BEGIN cPanel-generated handler, do not edit
# Set the “ea-php52” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php52 .php .php5 .phtml
</IfModule>
# php — END cPanel-generated handler, do not edit

UPDATE

Unfortunately, neither of the two methods worked for us.  The file continues to be updated by cpanel from time to time.  We only become aware of it when accessing the website (500 server error).

We’ve written to cpanel and requested assistance.

 



Please LIKE or tell a friend..



Post Views: 2,454

Also See..


  • How to change .htaccess IP address
  • Fixing WordPress Speed Issue
  • WordPress Admin Protection
  • cPanel: AutoSSL certificate renewal may cause a reduction of coverage
  • Stop Contact Form 7 Spam in WordPress

Recent Posts

  • How We Solved a Encoding Issue (Thanks to ChatGPT)
  • Windows 11 Not Seeing Keyboard at PIN Login = Fix
  • WooCoomerce: Buy Now + Affiliate Link + Cart – FIXED

About Brian King

Managing director and senior editor at Ripefruit Media

  • Email
  • Facebook
  • Twitter
  • YouTube

For Advertisers

  • Advertising FAQ
  • Contact Us
  • Content Changes
  • Website Network

IT Talk

  • How We Solved a Encoding Issue (Thanks to ChatGPT)
  • Windows 11 Not Seeing Keyboard at PIN Login = Fix
  • WooCoomerce: Buy Now + Affiliate Link + Cart – FIXED
  • Why WP Engine Affiliate program migration from ShareASale to Everflow is a WASTE of time
  • how to hide nvidia pop up
  • Facebook Wishlist: Edit Featured Pin’s
  • What is the best shopping cart?
  • file explorer not responding FIX

Keywords

admin affiliation attack australian avg brute force business cache change domain name ebay email facebook fix form for sale fraud google hosting how to htaccess image ip ip address LastPass mobile password Phishing pin plugin ranking removal remove responsive scam security seo software spam toontown web site website Wordfence wordpress wpmu dev

SiteMap

  • About Us
  • Acceptable Use Policy
  • Advertising
  • Contact Us
  • Digital Publications
  • Domain Names
  • Email
  • Home Page
  • Hosting
  • Internet
  • Publishing
  • Software
  • Technical
  • Search
  • Services
  • Web Design
  • About Us
  • What We Do!
  • Clients
  • IT Talk
  • Contact Us


Copyright © 2025 · Ripefruit

Ripefruit acknowledges and pays respect to Aboriginal and Torres Strait Islander Elders past, present and future. We commit to building a kind future for everyone.