WPTerm

Plugin Banner

WPTerm

by bruandet

Download
Description

An xterm-like plugin to run non-interactive shell commands.

WPTerm is an xterm-like plugin. It can be used to run non-interactive shell commands from the WordPress admin dashboard.

Just like a terminal, WPTerm lets you do almost everything you want (e.g., changing file permissions, viewing network connections or current processes etc). That’s great, but if you aren’t familiar with Unix shell commands, you can also damage your blog. Therefore, each time you use WPTerm, please follow this rule of thumb: if you don’t know what you’re doing, don’t do it!

Compatibility

WPTerm is not compatible with Microsoft Windows; it works on Unix-like servers only.

Because it makes use of PHP program execution functions such as exec or shell_exec, it may not be compatible with some shared hosts that have disabled these functions. To make sure your server is compatible, follow these steps:

  • Download this script.
  • Rename it to “wpterm-check.php”.
  • Upload it inside your website root folder.
  • Go to http://YOUR WEBSITE/wpterm-check.php
  • Delete it afterwards.

Password Protection

You can (and probably should!) password protect the access to WPTerm. Consult the contextual help, or type help at the terminal prompt to get more details about how to enable this feature.

Features

  • Selectable PHP program execution function to run commands.
  • Custom fonts family, size and color.
  • Custom background color.
  • History and scrollback buffer.
  • Terminal bell (audible / visible).
  • Optional password protection.
  • Contextual help.
  • Multisite compatible (only accessible to the SuperAdmin).

Supported Languages

  • English
  • French

Requirements

  • WordPress 3.3+
  • PHP 5.3+
  • Unix-like OS (Linux, *BSD etc) only. WPTerm is NOT compatible with Microsoft Windows.
  1. Upload wpterm folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ page in WordPress.
  3. Plugin settings are located in the ‘Tools > WPTerm’ sub-menu.
  1. Terminal (default colors and welcome message).

    Terminal (default colors and welcome message).

  2. Terminal (custom colors and welcome message).

    Terminal (custom colors and welcome message).

  3. Terminal (custom colors and welcome message).

    Terminal (custom colors and welcome message).

  4. Password protection.

    Password protection.

  5. Settings (fonts and colors).

    Settings (fonts and colors).

  6. Settings (terminal).

    Settings (terminal).

  7. Contextual help.

    Contextual help.

Is there any Microsoft Windows version ?

WPTerm works on Unix-like servers only.

Very good Plugin

By Matteo (matteodelta2020) on February 24, 2023

The plugin works fine Even if I change folder I can use it! really great

Wonderful

By con (conschneider) on February 28, 2022

Perfect for testing and debugging cURL. Thanks a lot!

Just what I needed

By George (georgew751) on January 26, 2021

I recently returned to a Linux server with sftp-only access. I am use to having ssh access, which allows one to execute shell commands. I found that WPTerm allows me to execute useful shell commands. For example, one can do: ps -u "user" -o user,pid,start,etime,time,nice,vsz,rss,command | egrep 'PID|php-fpm' | sed '/grep/d' to get a list of php-fpm processes (Of course, replace "user" with your user id).

Fantastic tool

By tajensen on October 8, 2020

I was looking for a way to run WP-CLI commands within WP Admin. This is the perfect tool to do just that!

Uma mão na roda

By mktdigitalap on April 1, 2020

Muito bom, ajuda muito na hora de fazer rotinas automáticas em hospedagens restritas.

A very useful plugin

By ShortPixel on November 4, 2019

Thank you for creating and maintaining this plugin, we find it very useful when debugging issues on customers websites. Keep up the good work, Alex

Amazing plugin

By dan1952iel on October 4, 2019

Very good job. Thanks a lot.

Thanks a lot

By Nils Hoyer (tahtu) on June 6, 2019

Now I do not longer need an external shell solution and can use the login protection of WordPress. Thanks a lot!

Great achievement for WordPress

By johndeebdd on January 16, 2019

Terrific plugin. I always forget the IPs and bash logins of my cloud machines. Saves time looking it up.

Perfect!

By pjfc on October 22, 2018

Thanks so much for developing this. Exactly what I needed.

1.2

  • Communication between the terminal and the plugin will be base64-encoded to prevent security applications such as ModSecurity to block the AJAX request.
  • Fixed a PHP “Function _load_textdomain_just_in_time was called incorrectly” notice.
  • Ensure compatibility with WordPress 6.8

1.1.9

  • Compatibility with WordPress 5.9.

1.1.8

  • Fixed the “Your site could not complete a loopback request” error message in Site Health due to the PHP session when WPTerm’s password protection was enabled.
  • On multisite installations the plugin is now accessible from the main site only. Since there’s just one physical WordPress install, there’s no need to use it on other sites.

1.1.7

  • Added right to left language support to the terminal (compatible wit Firefox, Chrome, Opera and Safari browsers).

1.1.6

  • Fixed an issue where the PHP session required by WPTerm’s password protection was always started, even when a non-admin user visited the site.

1.1.5

  • Added popen to the list of PHP functions that you can select to run commands (see “Settings > Terminal > Use the following PHP function for command execution”).

1.1.4

  • WordPress 4.9 compatibility.
Back to top