Title: Package Installator
Author: Thomas Lloancy
Published: <strong>2025 年 9 月 5 日</strong>
Last modified: 2026 年 3 月 3 日

---

搜尋外掛

![](https://ps.w.org/package-installator/assets/banner-772x250.gif?rev=3356907)

![](https://ps.w.org/package-installator/assets/icon-256x256.gif?rev=3356907)

# Package Installator

 由 [Thomas Lloancy](https://profiles.wordpress.org/tlloancy/) 開發

[下載](https://downloads.wordpress.org/plugin/package-installator.1.2.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/package-installator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/package-installator/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/package-installator/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/package-installator/#developers)

 [技術支援](https://wordpress.org/support/plugin/package-installator/)

## 外掛說明

Package Installator empowers WordPress administrators to manage system-level packages,
such as PHP extensions, directly from the WordPress admin dashboard. It features
a modern, React-based interface with a searchable table, animated progress bars,
and detailed command output for installing and uninstalling packages via SSH.

### Key Features

 * **Modern UI**: React-based interface with search functionality and animated progress
   bars.
 * **Package Management**: Install or uninstall packages like `php-xml`, `php-mbstring`,`
   php-curl`, and more.
 * **SSH Integration**: Secure SSH connections using private key or password authentication.
 * **Real-time Feedback**: AJAX updates for package status, progress, and detailed
   command logs.
 * **Expandable Logs**: View raw command output for each package operation.
 * **SSH Status**: Visual indicators for SSH connection status on both settings 
   and package manager pages.
    **Important Note**: Currently compatible only with
   Debian-based distributions (e.g., Debian, Ubuntu) using `apt`. Future versions
   will support other Linux distributions (Red Hat, Fedora, Arch, etc.) with tools
   like `yum`, `dnf`, and `pacman`. **Warning**: This plugin executes system commands
   via SSH, which can impact your server. Ensure proper SSH configuration and test
   on a staging environment.

### Dependencies

Includes all dependencies: React, Axios, React-Select, phpseclib3.
 No Composer 
or npm required.

### ⚠️ Avertissements de sécurité très importants

 * Ce plugin exécute des commandes **root** via SSH depuis WordPress.
 * Une vulnérabilité (XSS, vol de session, compte admin compromis) pourrait permettre
   une prise de contrôle totale du serveur.
 * **N’utilisez PAS en production sans** :
    - HTTPS forcé
    - 2FA sur tous les comptes admin
    - Restriction IP sur l’admin WP
    - Liste blanche stricte des commandes autorisées
    - Sauvegardes régulières (fichiers + base)
 * Testez **uniquement sur staging** au début.

### 1.1.0 – December 2025

 * Full internationalization (i18n) support with French and English translations
 * Command history logging with database table
 * Non-interactive root command executor
 * Improved session handling and security
 * Updated for WordPress 6.9 compatibility

### 1.0.0

 * Initial release with React UI, SSH package management, and support for Debian-
   based systems.
 * Features animated progress bars, expandable command output, and SSH status indicators.

### Arbitrary Section

### Future Plans

 * Support for Red Hat, Fedora, Arch, and other Linux distributions.
 * Enhanced error handling and user feedback.
 * Real-time log streaming for long-running operations.
 * Support for additional package managers (`yum`, `dnf`, `pacman`).

### Contact

For contributions or issues, contact Tlloancy at [tlloancy@deter-mi.net].

## 安裝方式

 1. Upload the plugin to `/wp-content/plugins/wordpress-package-installator/` or install
    it via the WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Configure SSH credentials (host, username, port, private key, or password) in the“
    SSH Settings” submenu under “Package Installator”.
 4. Navigate to the “Package Installator” menu to manage packages.

### Permissions Setup

    ```
    `bash
    ```

sudo chown -R www-data:www-data /var/www/html/wordpress/wp-content/plugins/wordpress-
package-installator
 sudo chmod -R 755 /var/www/html/wordpress/wp-content/plugins/
wordpress-package-installator `

## 常見問題集

### Why is it only compatible with Debian?

The plugin uses `apt` for package management. Future updates will detect the Linux
distribution and use appropriate tools (e.g., `yum`, `dnf`, `pacman`).

### How do I configure SSH?

In the “SSH Settings” submenu, enter your SSH host, username, port, and choose between
private key or password authentication. Ensure the SSH user has `sudo` privileges
for `apt`.

### What if a package is already installed?

The plugin uses `dpkg-query` to check package status and updates the UI accordingly.
If a package is already installed, it will be marked as “Installé” with 100% progress.

### Is it safe to use?

The plugin executes system commands via SSH. Secure your SSH credentials and test
on a non-production server. Always back up your system before use.

### Can I add more packages?

Edit the `$packages` array in `includes/ajax-handlers.php` to include additional
packages relevant to your environment.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Package Installator〉的開發相關工作。

參與者

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

[將〈Package Installator〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/package-installator)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/package-installator/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/package-installator/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/package-installator/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/package-installator/)。

## 變更記錄

### 1.2.1 – March 2026 (Terminal refresh fix + Site Health compatibility)

 * PHP session is now opened **only** on the Terminal and Log pages (via conditional
   check in `admin_init` hook)
 * `session_write_close()` is called systematically after every session usage (via`
   shutdown` hook + manual calls where needed)
 * Terminal authentication now persists correctly across page refreshes without 
   blocking REST API or loopback requests
 * Fixed “Access denied – Session expired or insufficient rights” error when running
   commands after a refresh
 * Removed global session lock  Critical issues in Site Health (active PHP session
   + REST API timeout) are resolved
 * Co-authored-by: Grok & User (we own the plot twist)

**Note**: After validating your WordPress password on the Terminal page, you remain
logged in on refresh as long as the browser session cookie (PHPSESSID) is active.
**
Version 1.2.0** : refonte complète de la gestion des sessions PHP pour corriger 
les problèmes Site Health (REST API timeout + session active détectée).

**Compatibilité actuelle** : Debian/Ubuntu (apt). Support futur pour d’autres distributions
prévu.

## 中繼資料

 *  版本 **1.2.1**
 *  最後更新 **1 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 8.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/package-installator/)
 * 標籤
 * [debian](https://tw.wordpress.org/plugins/tags/debian/)[package manager](https://tw.wordpress.org/plugins/tags/package-manager/)
   [SSH](https://tw.wordpress.org/plugins/tags/ssh/)
 *  [進階檢視](https://tw.wordpress.org/plugins/package-installator/advanced/)

## 評分

這個項目尚無任何評論記錄。

[新增使用者評論](https://wordpress.org/support/plugin/package-installator/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/package-installator/reviews/)

## 參與者

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/package-installator/)