/go/restart is a shortcut for the two commands you usually run together after a server-level change to PHP or the web server. It runs them one after the other: Restarting stops and starts the services, so sites are briefly unavailable. When you only changed configuration, reload is usually the gentler choice. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
/go/restart
Options
None.
Examples
# Restart PHP-FPM and the web server
/go/restart
# Apply a configuration change without a full restart
/go/reload
# Restart only one of the two
/go/fpm
/go/web
Output
/go/restart prints nothing itself. You see only what fpm and web print.
Notes on the output:
- There is no success message and no check that the services are running again.
- The exit status is the one from
web, the last command. Iffpmfails,webstill runs, and the failure is not reported. - Every run is logged with a timestamp and its arguments to
/var/log/go/restart.log.
See the full reference at /go/restart 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.
