/go/installphp installs one PHP version next to the versions already on the server. It: The command installs a version only. It does not change which version any domain uses. Use multiphp for that. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.
Quick start
/go/installphp 8.3
Arguments
| Argument | Required | Default | Notes |
|---|---|---|---|
<version> |
Yes | — | One digit, a dot, one digit, such as 7.4 or 8.3. Anything else is rejected with Invalid PHP Version. |
--progress |
No | Off | Prints progress messages. |
Examples
# Install PHP 8.3
/go/installphp 8.3
# Install with progress messages
/go/installphp 8.3 --progress
# Confirm it is installed
/go/multiphp return
# Use it for one domain
/go/multiphp example.com 8.3
Output
| Outcome | What you get |
|---|---|
| No argument | Usage: removephp <Version> and exit code 1. The message names the wrong command. |
| Invalid version | Invalid PHP Version and exit code 1. |
| Another install running | Instance (<name>) already running. and exit code 1. |
| Installing | The output of dnf or apt. |
Installing with --progress |
A message for each extension, such as Installing PHP 8.3 GD, then Installing PHP 8.3 completed successfully and 100. |
The command exits with 0 even if some packages failed to install, because it doesn’t check the result of the package manager.
Logging
Every run is appended to /var/log/go/installphp.log.
Locking
The lock file /usr/local/goadmio/lock/installphp.lock blocks a second run. A lock older than 10 minutes is treated as stale and replaced.
See the full reference at /go/installphp 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.
