If one letter it missing in WHM menu settings will damage the entire server without get any notifications or a clue

mariusfv

Active Member
Mar 24, 2013
37
7
133
Romania
cPanel Access Level
Root Administrator
I wasted an entire weekend for a customer to understand what the problem might be with his powerfull dedicated server managed by WHM / cPanel.

Simptoms:
1. His webistes sometime works, sometimes not!
2. When try to rebuild Easy apache some profiles works, some profiles error to install / update (sometimes the same profile works to rebuild and after 20 minutes error to install / update).
3. Free RAM on dedicated server 60 GB.
4. WHM show 1024M for memory (in menu and tested with any PHP script show f**king green bullets)!
5. VIA Linux root / console everything looks OK!
6. Tested PHP memory with scripts on his WordPress websites show 1024 MB memory alocated to process .
7. In the logs nothing that can help you to go in the right direction!

THE PROBLEM WAS IN WHM: It missing the letter “M” in WHM menu > Multi PHP > Memory (customer change the old value of 256M with 1024 (without the letter M)!

Come on cPanel, you must to admit that UX for some menus / settings must be drastically improved! It is so hard for you at form fields to add an confirmation field (like: choose unit: MB, GB for fields that require unit values?), or made it simple: to not accept invalid values!
This scenario could happen even to advanced users, as long as some of your form fields require only numbers, and some WHM fields require numbers and letters!
 

andrew.n

Well-Known Member
Jun 9, 2020
617
179
43
EU
cPanel Access Level
Root Administrator
I could be wrong but if you try to save the value in WHM that would throw an error and wouldn't let you. It is possible that it was adjusted via SSH earlier and this was a user error.
 

mariusfv

Active Member
Mar 24, 2013
37
7
133
Romania
cPanel Access Level
Root Administrator
I could be wrong but if you try to save the value in WHM that would throw an error and wouldn't let you. It is possible that it was adjusted via SSH earlier and this was a user error.
Was changed thru WHM interface from 256M to 1024, not via SSH. I've tested and WHM latest version let you change to any value without "M" at memory field without throw you an error!
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
51
103
Houston
cPanel Access Level
Root Administrator
Hello mariusfv! Thank you for that information. I agree that the interface should specify that M is required for certain values and not allow those values to be saved without M. However, Apache does accept bytes for similar values, so I believe that is why the interface doesn't restrict byte values from input.

With that being said, I filed an internal case with our development team to reconsider this and either restrict only specific values from being entered without "M" specified or provide an error message instead that informs the user to make the change in the Advanced Editor if they don't wish to specify megabytes.

We'll update this thread with more information as it becomes available.