/go/config writes the file /usr/local/goadmio/include/config/config.php. GoAdmio reads this file to find: The command only writes the file. It does not display the current settings. To read them, open the file itself. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
# Create the file if it doesn't exist yet
/go/config
[!WARNING]
The file contains the MariaDB root password in plain text. The command doesn’t set permissions on it, so check that it isn’t readable by other users. In manual mode the password you type is also saved, unmasked, in/var/log/go/config.logand shown in your shell history.
Options
| Option | Required | Default | Notes |
|---|---|---|---|
--force |
No | — | Deletes config.php before running. Use it alone. |
Examples
# Create the file on a new server
/go/config
# Back up the file, then regenerate it
cp -p /usr/local/goadmio/include/config/config.php /root/config.php.bak
/go/config --force
# Write specific values (single quotes protect special characters in the shell)
/go/config 'MyDbPassword' goexample
# View the result, and check who can read it
cat /usr/local/goadmio/include/config/config.php
ls -l /usr/local/goadmio/include/config/config.php
Output
The command prints nothing when it succeeds. Every run is logged with its arguments and a timestamp, for example [Nov 20 09:15:02]# config --force, to /var/log/go/config.log.
| Situation | What you see |
|---|---|
| File created | Nothing. |
File already exists (automatic mode, no --force) |
/usr/local/goadmio/include/config/config.php File Already Exists. The command exits with status 1. |
See the full reference at /go/config and the GoAdmio command index.
GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.
