Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux support

MediaServe

Well-Known Member
PartnerNOC
Apr 9, 2004
141
10
168
Dallas, Texas
cPanel Access Level
DataCenter Provider
I'm loving that cPanel is now officially supporting CloudLinux! I just posted a ticket with CloudLinux, but wanted to post it here as well to see if I can find someone else with the problem, or get ideas from the community about what might be causing this.

Here's the text of the ticket I raised with CloudLinux:

We have a weird issue that has cropped up, and the only difference between a server with the problem and without is that the one with the problem has had apache/php recompiled using the new cPanel EasyApache with cloudlinux support.

The problem is that even though the standard AllowOverride All is in place in httpd.conf, on a server where we recompiled Apache/PHP with EasyApache v3.3.3 rev9999 #cloudlinux, all ErrorDocument directives in customer .htaccess files are failing with "ErrorDocument not allowed here" messages in the apache error log.

We recompiled only to enable the PHP Zip extension on a server. On that server, apachectl -v reports this:

Server version: Apache/2.2.17 (Unix)
Server built: May 14 2011 08:58:13
Cpanel::Easy::Apache v3.3.3 rev9999 +cloudlinux

On a server where we don't have the problem, apachectl -v reports:

Server version: Apache/2.2.17 (Unix)
Server built: Mar 30 2011 18:48:45
Cpanel::Easy::Apache v3.2.0 rev5316

On both servers, this section of the httpd.conf should allow us to use ErrorDocument in .htaccess files:

<Directory "/">
Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
AllowOverride All
</Directory>

Has anyone else reported this? It doesn't seem like anything that should be cloudlinux related, but that's the only difference between the two servers.
 

stapler2025

Registered
Oct 29, 2007
2
0
51
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

I'm also having this same exact issue. Raised a ticket with cPanel support, and right now we're sitting at "I've narrowed the cause down to custom ErrorDocument lines in user's .htaccess files. However, Apache's configuration does not look like it is denying these overrides. I'm currently escalating this ticket right now so it can be reviewed by another analyst. Please stand by for updates."
 

MediaServe

Well-Known Member
PartnerNOC
Apr 9, 2004
141
10
168
Dallas, Texas
cPanel Access Level
DataCenter Provider
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

Glad (well, sort of) to see it's not just me. Are you running CloudLinux as well? Did you also use EasyApache just before the problem began?

If it wouldn't be too much trouble you might add the URL to this post to the ticket so the cPanel folks realize there are others (or other at least) with this problem.
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
44
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

From what I can see, the ticket in our system is #1491762 and the issue was being discussed as possibly related to the PHP version rather than CloudLinux at the time. Can you confirm that after downgrading to PHP 5.2.17 from PHP 5.3.6, this is now working properly?
 

MediaServe

Well-Known Member
PartnerNOC
Apr 9, 2004
141
10
168
Dallas, Texas
cPanel Access Level
DataCenter Provider
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

We're running 5.2.17 on the affected server. We haven't upgraded to 5.3 yet.

I don't see how PHP can come into play with this anyway. It's an ErrorDocument directive in .htaccess being disallowed--nothing to do with PHP at all, and happens no matter what sort of document is requested from a site with such a .htaccess directive.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
44
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

Hello wtl,

My comment was in regards to the ticket opened for the stapler2025 user. That ticket discussed it only happening in PHP 5.3.6 and not in PHP 5.2.17, so it would be wonderful if we could get feedback about that issue specifically for what is happening with their issue, since that is the only user who has opened up a ticket.

You could certainly open up a ticket, given the support system is complimentary at no cost to do so, which would then allow us to investigate it on your system.

Thanks!
 

stapler2025

Registered
Oct 29, 2007
2
0
51
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

Sorry for the delayed reply, it actually happened with both versions. We did however get a reply back in our ticket from the CEO of CloudLinux.

I believe it is an issue with mod_hostinglimits
We are working to fix it now, but it might take us ~24 hours to get it fixed.

For now you might either comment out ErrorDocument in .htaccess file
or comment out line:

LoadModule hostinglimits_module modules/mod_hostinglimits.so
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
14
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Re: Weird .htaccess ErrorDocument problem after using new EasyApache w/cloudlinux sup

Hello,

Did they fix the issue with mod_hostinglimits?
I believe the issue is fixed as of mod_hostinglimits version 0.7-9; this update is also included in EasyApache version 3.3.4, published Friday, May 20th, 2011.