Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Create a better structure in cpanel.config

David Majchrzak shared this idea 10 years ago
Open Discussion

Hi.

Currently /var/cpanel/cpanel.config contains:


key=value

key=

key


which makes it difficult to parse using Augeas or other tools.


It would make sense to switch to a key=value structure for those with empty values or those with only keys for easier management with devops.

Replies (3)

photo
1

Given the sheer amount of working pieces of the product that rely upon this config and its current deployment, the concept of re-designing it would potentially be very complicated. It is unlikely that this would be done simply to address the nuances of a 3rd party config editor program for a file we do not expect users to have to edit manually.


On face value, it would simpler to write a regular express or two to correctly interpret the configuration within the config editor parser. I'd love to hear the use cases on why an external configuration tool is being utilized. While we do support manually editing this config file, it's not anticipated that users will need to do so frequent -- much less so with a 3rd party config editor.


What is necessitating the extra power of the external editor? Perhaps we can tackle any UI inefficiencies and problems.

photo
1

Our recommended methods of changing the cpanel.config file are:


1. Via the Tweak Settings UI in WHM; or

2. Via the get and set tweak settings API calls.


The cpanel.config is intended to be managed by cPanel & WHM itself, not by external applications. At least not directly.

photo
1

Is there any way to close old requests? I'm satisfied with Ken's answer :)

Leave a Comment
 
Attach a file