custom php_settings.json - change range to values

johannes

Verified User
Joined
Feb 18, 2007
Messages
386
Is it possible to change a given range to a list of values?

Example: change range from

"max_input_vars" : {
"default" : 10000,
"type": "int",
"range" : [ 1, 100000 ]
},

to a list of values:

"max_input_vars" : {
"default" : 10000,
"type": "list",
"values" : [
"8000",
"12000",
"16000",
"20000",
] },


.. and if yes, is this valid for all range options?

Thanks
 

johannes

Verified User
Joined
Feb 18, 2007
Messages
386
try custom this file "/usr/local/directadmin/data/templates/php_settings.json"
As I wrote in my title "custom php_settings.json" I have already a custom php_settings.json.
My question is, if its allowed (or if its possible) to change a range to a list, when its a range in the original json.
Thanks
 

jamgames2

Verified User
Joined
Aug 16, 2019
Messages
716
Sorry, But it possible. From my testing in the past. That I don't want user Change Memory. I change type list into range, it working!

Also list to range posaible too, Because it template, it should work like a Dynamic System.

Besure you restart Directadmin after make change.
 

johannes

Verified User
Joined
Feb 18, 2007
Messages
386
I change type list into range, it working!
Also list to range posaible too, Because it template, it should work like a Dynamic System.
Besure you restart Directadmin after make change.
Sounds great, thanks for the info! Will try and report here.
 
Top