Search for WordPress plugin in a cPanel server using Bash

WordPress plugins play a crucial role in extending the functionality of websites. However, from a security perspective, it is important to be aware of the plugins installed on a server, as outdated or vulnerable plugins can be exploited by attackers. This guide provides a simple Bash one-liner to search for a specific WordPress plugin across … Read more

Run Local Scripts Remotely Over SSH in Linux

Run Local Bash Scripts Remotely Run local bash script.sh over ssh, with sudo as root, using custom ssh key and sudo user. Run local bash script.sh over ssh, simplified version Run Local Perl Scripts Remotely Run local Perl perlscript.pl over ssh, quietly (-q)

cPanel Tips: Troubleshooting the Imunify360 Agent

Troubleshooting the Imunify360 Agent Understanding the Imunify360 Agent vs. imunify360-agent Command For system administrators working with Imunify360, it is important to differentiate between the Imunify360 Agent as the core functionality of the security suite and the imunify360-agent command-line tool. The Imunify360 Agent is a service that runs continuously in the background, providing real-time security monitoring, … Read more

Install JQ on Windows

The Windows binary file for jq can be downloaded fromhttps://stedolan.github.io/jq/download/ At the time of writing, the latest version ishttps://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe If you want the jq command to be available from everywhere within windows there are 3 steps to be followed: $jqFolderPath = “C:\Program Files\JQ” $jqExePath = “$jqFolderPath\jq.exe” $jqDownloadUrl = “https://github.com/stedolan/jq/releases/download/jq-1.6/jq-win64.exe” # Step 1: Create the folder … Read more

Activate / deactivate individual cPanel feature

For example, if you want to enable or disable JetBackup 5, in the feature named default To enable, run: sed -i ‘s/jb5=0/jb5=1/’ /var/cpanel/features/default To disable, run: sed -i ‘s/jb5=1/jb5=0/’ /var/cpanel/features/default If you want to enable for all feature sets, the target should be /var/cpanel/features/*

Bulk update PHP handler cPanel

List existing handlers /usr/local/cpanel/bin/rebuild_phpconf –current Example Output: DEFAULT PHP: ea-php74 alt-php44 SAPI: cgi alt-php51 SAPI: cgi alt-php52 SAPI: cgi alt-php53 SAPI: cgi alt-php54 SAPI: cgi alt-php55 SAPI: cgi alt-php56 SAPI: cgi alt-php70 SAPI: cgi alt-php71 SAPI: cgi alt-php72 SAPI: cgi alt-php73 SAPI: cgi alt-php74 SAPI: cgi alt-php80 SAPI: cgi alt-php81 SAPI: cgi ea-php51 SAPI: cgi … Read more

cPanel release tiers and cPanel version control

cPanel release tiers explained LTS A well-tested and proven version that cPanel, L.L.C. supports for one full year.STABLE A version that is feature-complete, fully tested, and is in widespread use.RELEASE A version that is feature-complete and well tested.CURRENT A “release candidate” version that is tested but may not be feature-complete.EDGE A development version for testing … Read more

Create a list of wp-config.php on a cPanel server.

Sometimes it is necessary to edit in bulk all wp-config.php form all WordPress websites that are present in a cPanel server. We can start build that list first, then we can use commands like sed in order to bulk modify settings. This is just the method to generate this list: find /home -type f -name … Read more

OpenSSL cheatsheet

Display SAN of an SSL connections, example for google.com: openssl s_client -host google.com -port 443 | openssl x509 -noout -ext subjectAltName