extension with the /go/extension Command

/go/extension manages PHP extensions server-wide. It can: This always acts on every PHP version installed on the server, not on a single domain's version. For which version a domain uses, see multiphp. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

# See what's available
/go/extension

# Install an extension everywhere
/go/extension imagick

# Remove it everywhere
/go/extension imagick remove

Options

Argument Notes
<name> Required to install or remove. Not validated; an unknown name just fails per PHP version with the package manager’s own error.
<action> 0, 2, or remove → remove. Anything else, including nothing → install.

Examples

# List what's available (also refreshes the cached list)
/go/extension

# Install imagick for every PHP version
/go/extension imagick

# Remove it again
/go/extension imagick remove
/go/extension imagick 0

# Check what actually got installed for PHP 8.3
php8.3 -m | grep imagick

Output

No arguments

A table:

Number Module Description
------ ------ -----------
1 curl PHP module for curl
2 gd A module for PHP applications that use GD...
...

The Number column is informational only; you install or remove by name, not by number.

With a name

The output of dnf or apt for each PHP version, repeated once per version. If another extension run started in the last 10 minutes, it prints Another instance is running and exits instead.

See the full reference at /go/extension 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.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *