cPanel 94 and cPanel Error Pages

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

PeteS

Well-Known Member
Jun 8, 2017
303
66
78
Oregon
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.
Ok, I accept that, but from the docs it appeared to be a fix. Is cPanel really the desperate that it feels the need to add this branded content without giving us any control?!

More importantly right now... let's have a work-around to disable it. (Yes, I can put my own version of of these unwanted pages in /root/cpanel3-skel/public_html, or I can delete them manually. But I'm talking a hack to the account creation script, or an override file to just stop the silliness.) Please give us this much now...

I upvoted the feature request (fix).

-Pete
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,631
363
cPanel Access Level
Root Administrator
I do have news this time :D

We have case CPANEL-36610 for the developers to add an option to WHM >> Tweak Settings to make these optional :D It's scheduled to be included in a future version of 96, and I'll post again as soon as I have a specific version number available.
 
  • Like
Reactions: MindServer

MindServer

Well-Known Member
Mar 18, 2020
236
32
28
Spain
cPanel Access Level
Root Administrator
I do have news this time :D

We have case CPANEL-36610 for the developers to add an option to WHM >> Tweak Settings to make these optional :D It's scheduled to be included in a future version of 96, and I'll post again as soon as I have a specific version number available.
Okay, thank you very much. Have a nice day.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,631
363
cPanel Access Level
Root Administrator
The option to turn these on or off is scheduled to be in 94.0.9.

I suppose you could do a find/delete on these, just making sure you limit that search to /home/username. You can also edit the contents of the files in /usr/local/cpanel/htdocs and your edits will then be used for future account creation.
 

garbintecnologia

Active Member
Mar 4, 2021
33
2
8
Brasil
cPanel Access Level
Root Administrator
Hello, what would be the path and option to disable the creation of these pages?
Another question, is it possible when creating a new account an index page/file would be created as a welcome screen? If so, how can I do it?

I am currently using WHM v96.0.8

Thank's
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
10,360
1,631
363
cPanel Access Level
Root Administrator
@garbintecnologia - the options in Tweak Settings are stored in /var/cpanel/cpanel.config and the value specific to this is copy_default_error_documents. You'd want to change that value to 0 to disable the creation of those pages, although that is the default value.

The option may also be listed in the tweak_unset_vars line so make sure it is not present there if you edit the file manually.

You could use the skeleton directory system if you wanted to add a specific file to each domain when the account is initially created. Details on that work can be found here: Skeleton Directory | cPanel & WHM Documentation
 
  • Like
Reactions: garbintecnologia

garbintecnologia

Active Member
Mar 4, 2021
33
2
8
Brasil
cPanel Access Level
Root Administrator
I checked here and it appears as:
copy_default_error_documents=0 and tweak_unset_vars=copy_default_error_documents

Should the tweak_unset_vars be equal to 0?

Because until then I did not change this configuration my WHM updated from 94 to 96 in the last week.
 

quietFinn

Well-Known Member
Feb 4, 2006
1,653
326
438
Finland
cPanel Access Level
Root Administrator
Hi,

Which is the option's name in "Tweak Settings" for can disable error document creation?. I not found him.

I have WHM/cPanel 94.0.10

Thank you.
That options is not in v.94, in v.96 it's in Tweak Settings -> System, " Copy default error documents to docroot for new accounts, addon domains, and subdomains "