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.
| Command | Action |
|---|---|
mogwai sites list | List sites |
mogwai sites create --server-name=my-site.com --owner=USER --handler=fcgi --handler_version=8.3 | Create a site for a user |
mogwai sites update-backend --id=ID --handler=fcgi --handler_version=7.4 | Change the PHP version (--handler is required) |
mogwai databases create --server=1 -n DB -u USER -p 'PASS' -s my-site.com | Create 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.com | Issue Let's Encrypt |
/usr/local/fastpanel2/app/updater | Update the panel |
Without --handler=fcgi the update-backend command resets the site handler, and another site opens instead.
FastPanel documentation: kb.fastpanel.direct.