Prevent CPanel auto-generation that breaks Releem config #217
drupaladmin
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To prevent innodb_buffer_pool_size and max_allowed_packet auto generating by cpanel i suggest adding this to your install script for cpanel servers which disables that feature
cat /var/cpanel/cpanel.config | grep mycnf_auto_adjust
whmapi1 --output=jsonpretty
set_tweaksetting
key='mycnf_auto_adjust_innodb_buffer_pool_size'
value='0'
whmapi1 --output=jsonpretty
set_tweaksetting
key='mycnf_auto_adjust_maxallowedpacket'
value='0'
whmapi1 --output=jsonpretty
set_tweaksetting
key='mycnf_auto_adjust_openfiles_limit'
value='0'
cat /var/cpanel/cpanel.config | grep mycnf_auto_adjust
or maybe have a sanity check to ensure the config is correct and to display a warning
Beta Was this translation helpful? Give feedback.
All reactions