CMSB v3.60 Released (Enhanced Server Management & Error Tracking)
The following command required sudo. Also -S came up as invalid on MacOS Ventura 13.4.1
du -hSx / | sort -hr | head -n 30
The following command worked on my machine without sudo and limited it to the current directory
du -ahx | sort -hr | head -n 30
Here is the man page for du on Macos
ALSO the command should use settings->webRootDir and not / the root directory for the server. Then there is no need for sudo and is limited to the website root.
I've added the composer.json updates to the next release in development.
For the utility functions under Server Info, they won't work on all servers due to differences and security limitations, but they can be useful when they do. It's more about being able to easily investigate the current server.
The purpose of the largest dirs function is to try and determine what's taking up the most space on the server's mounted filesystem, which would include even files above the website root. Unfortunately, it seems the BSD version of du that ships with MacOS doesn't support the -S option that let's us exclude subdirectory sizes in the calculation. I'd be happy to find something that would work.
For releases, I'm wondering about calling the sw_vers command on macos. Can you let me know what it shows when you hover over the OS name?
For the Macos, is that your workstation or development server? I'd be glad to add some mac specific code, we just don't have a machine handy to test on. Can you click on: "Admin > General > Server Info > PHP > phpinfo link" and then search for PHP_OS and tell me the value of PHP_OS and PHP_OS_FAMILY? I can add some macos detection code.
Thanks for the feedback!