FastPanel for administrators: mogwai commands

This article is for the server administrator (user fastuser). The client login does not show these sections — if you need such a setting, contact support.

Run the commands via SSH as root.

CommandAction
mogwai sites listList sites
mogwai sites create --server-name=my-site.com --owner=USER --handler=fcgi --handler_version=8.3Create a site for a user
mogwai sites update-backend --id=ID --handler=fcgi --handler_version=7.4Change the PHP version (--handler is required)
mogwai databases create --server=1 -n DB -u USER -p 'PASS' -s my-site.comCreate a database for a site (login up to 16 characters)
mogwai chpasswd -u USER -p 'PASSWORD'Change a panel user password
mogwai certificates create-le --server-name=my-site.com --email=admin@my-site.comIssue Let's Encrypt
/usr/local/fastpanel2/app/updaterUpdate the panel

Without --handler=fcgi the update-backend command resets the site handler, and another site opens instead.

FastPanel documentation: kb.fastpanel.direct.