CMSB v3.60 Released (Enhanced Server Management & Error Tracking)

15 posts by 3 authors in: Forums > CMS Builder
Last Post: August 1, 2023   (RSS)

By kitsguru - July 12, 2023

is it possible to update the online demo to this version?

Jeff Shields

By Dave - July 13, 2023

Hi Jeff, 

Sure, we could take a look at that.  Curious how you're using the online demo or how that would help?  Thanks!

Dave Edis - Senior Developer
interactivetools.com

By kitsguru - July 13, 2023

just went to check out the new server info without having to do it on my server.

Jeff Shields

By Dave - July 13, 2023

Hi Jeff, 

Oh sure, yea the demo site won't show actual info in demo mode.  I've attached a screenshot from my local development machine. 

Let me know any questions.

Dave Edis - Senior Developer
interactivetools.com
Attachments:

dave server info.png 46K

By kitsguru - July 13, 2023

Thanks, I see a couple of things I would like to explore, but will do it on my machine.

Jeff Shields

By kitsguru - July 14, 2023

composer.json needs to be updated to:

{
    "minimum-stability": "stable",
    "require": {
    },
    "config" : {
      "platform": { "php": "8.0.0" },
      "vendor-dir" : "vendor"
    }
}
Jeff Shields

By kitsguru - July 14, 2023 - edited: July 14, 2023

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

https://ss64.com/osx/du.html

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.

Jeff Shields

By kitsguru - July 14, 2023

In the server info on Macos it is necessary to check if running under Darwin, 

Operating System Darwin 22.5.0 (release)

The 'release' link is file not found.

Jeff Shields

By Dave - July 14, 2023

Hi Jeff,

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!

Dave Edis - Senior Developer
interactivetools.com