virtualmin-php

Manage PHP versions, modes, directories and php.ini settings for Virtualmin domains

tranmani/virtualmin-skills2 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI

Agent Skills format with YAML frontmatter. Claude Code reads it as-is.

---
name: "virtualmin-php"
description: "Manage PHP versions, modes, directories and php.ini settings for Virtualmin domains"
license: "MIT"
---

# Virtualmin PHP

Configure PHP versions and settings per Virtualmin virtual server.

## When to Use

- List available PHP versions on the server
- Set or change the PHP version for a domain directory
- View or modify php.ini settings per domain
- List PHP-FPM pool directories

## Available Scripts

| Script | Command | Description |
|--------|---------|-------------|
| `list-php-versions.sh` | `virtualmin list-php-versions` | List PHP versions available on server |
| `list-php-directories.sh` | `virtualmin list-php-directories` | List PHP version assignments per directory |
| `set-php-directory.sh` | `virtualmin set-php-directory` | Set PHP version for a directory |
| `delete-php-directory.sh` | `virtualmin delete-php-directory` | Remove PHP version override for a directory |
| `list-php-ini.sh` | `virtualmin list-php-ini` | Show php.ini settings for a domain |
| `modify-php-ini.sh` | `virtualmin modify-php-ini` | Change a php.ini setting for a domain |

## Usage

```bash
sudo bash list-php-versions.sh
sudo bash set-php-directory.sh --domain example.com --dir /home/example.com/public_html --version 8.2
sudo bash modify-php-ini.sh --domain example.com --ini upload_max_filesize --value 64M
sudo bash list-php-ini.sh --domain example.com
```

## Notes

- Multiple PHP versions can coexist on the same server using PHP-FPM
- `modify-php-ini.sh` changes the domain-level php.ini, not the global one
- Use `list-php-versions.sh` first to get exact version strings for `set-php-directory.sh`

More General & Other skills

← All General & Other skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY