cPanel 94 and cPanel Error Pages

Operating System & Version
CloudLinux release 8.3 (Pavel Belyayev)
cPanel & WHM Version
94.0.0

andrewmoras

Active Member
Feb 6, 2021
34
21
8
Remote
cPanel Access Level
DataCenter Provider
Hey guys,

I just did a fresh cPanel 94 installation on CloudLinuxOS+ 8 and noticed that error pages get deployed automatically in all new and transferred accounts:

Bash:
400.shtml
401.shtml
403.shtml
404.shtml
413.shtml
500.shtml
cp_errordocument.shtml
I don't have them in cpanel3-skel and I haven't enabled anything special. Any idea if this is default and is there any way to stop them from being created? They are cPanel branded and if customers want to create them, they can do so via cPanel GUI but I don't think it's a good idea to have them deployed by default.

Thanks,

A
 

andrewmoras

Active Member
Feb 6, 2021
34
21
8
Remote
cPanel Access Level
DataCenter Provider
Hey there! I haven't noticed this on my end, but I'm happy to do some testing. Are you seeing these in the user's public_html directory?
Yep, inside public_html only for every new account that gets created. The same happens if you move an account there. It's a fresh cPanel 94 on CloudLinuxOS+ 8, not an upgraded installation. I have no idea where are they coming from so I thought I'd ask.

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,250
2,218
363
cPanel Access Level
Root Administrator
I did some homework on this and confirmed we added these files in 94 as part of case CPANEL-34417. You'll see that listed in our changelogs here: 94 Change Log | cPanel & WHM Documentation

I did confirm that if you place files with the same name inside /root/cpanel3-skel/public_html it will use those instead of the ones that are generated by default.

Let me know if that helps!
 

andrewmoras

Active Member
Feb 6, 2021
34
21
8
Remote
cPanel Access Level
DataCenter Provider
I did some homework on this and confirmed we added these files in 94 as part of case CPANEL-34417. You'll see that listed in our changelogs here: 94 Change Log | cPanel & WHM Documentation

I did confirm that if you place files with the same name inside /root/cpanel3-skel/public_html it will use those instead of the ones that are generated by default.

Let me know if that helps!
Hey cPRex,

I'm not familiar with CPANEL-34417 but I assume that going forward these files will be always present in customer's account? Is there a way to disable them instead and only have them created IF the customer wants via the Error Pages GUI in cPanel? I don't want to create empty pages inside cpanel3-skel just to replace these "default" ones that haven't been showing up until now.

Thanks,

A
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,250
2,218
363
cPanel Access Level
Root Administrator
At this point there isn't a way to disable those files from being created as it's part of the account creation script. It would definitely be worth submitting a feature request for an option to toggle that behavior on the system, which you can do with the link in my signature.
 

andrewmoras

Active Member
Feb 6, 2021
34
21
8
Remote
cPanel Access Level
DataCenter Provider
At this point there isn't a way to disable those files from being created as it's part of the account creation script. It would definitely be worth submitting a feature request for an option to toggle that behavior on the system, which you can do with the link in my signature.
Thanks cPRex! I've submitted a feature request and hopefully it gets implemented if enough people up vote it.

Thanks,

A
 
  • Like
Reactions: PeteS

PeteS

Well-Known Member
Jun 8, 2017
380
85
78
Oregon
cPanel Access Level
Root Administrator
@sajithgsm - currently there isn't a way to disable these, although a user earlier in this thread did open a feature request to get that behavior adjusted.
I came here about the same issue. All new accounts are cluttered up with these files...

I find is super frustrating that cPanel's answer is to ask us to create a feature request! How about cPanel look at this a needed bug fix? At the *very least* this should have come with an off switch. Good grief...!

-Pete
 
  • Like
Reactions: MindServer

PeteS

Well-Known Member
Jun 8, 2017
380
85
78
Oregon
cPanel Access Level
Root Administrator
I did some homework on this and confirmed we added these files in 94 as part of case CPANEL-34417. You'll see that listed in our changelogs here: 94 Change Log | cPanel & WHM Documentation

I did confirm that if you place files with the same name inside /root/cpanel3-skel/public_html it will use those instead of the ones that are generated by default.

Let me know if that helps!
Can you elaborate on CPANEL-34417? I have never seen these files in a new account in all my years as a user, though I did find some discussion of it in posts from past years. If this was a "fix," how long was is "broken?" This is just weird. Can you shed some light on it?

-Pete
 
  • Like
Reactions: MindServer

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,250
2,218
363
cPanel Access Level
Root Administrator
Everything with a CPANEL-##### case doesn't necessarily indicate a bug that we fixed. These can be improvements, or just general development tasks.

It was decided that we needed to have the error documents available in a place that cPanel users could manipulate them easily as part of the account creation - some users liked getting those, and some didn't. What we didn't include was a way to make their creation optional. But CPANEL-34417 wasn't a "fix" of anything, just the paper trail for this work by our devs.