WordPress

WordPress is a free content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. Currently, WordPress is used by more than 60 million websites.

UPDATE: In January 2021 I started another blog wp✘SS that is dedicated to troubleshooting most common WordPress problems, for more WordPress articles please head over to wpxss.com.

www.wordpress.org

image - Enable Brotli Compressing using .htaccess file

Enable Brotli Compressing using .htaccess file

To check if Brotli is enabled on the server for the current PHP version: php -m | grep brotli To use it on the website add the following to the beginning of the .htaccess file: <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text...

chrome 7spm80ytMF - Find all WordPress installations  and export their databases

Find all WordPress installations and export their databases

This simple script will search for all wp-config.php files in a directory, pull the database name and create a backup of it. for wpinstall in $(find "$(pwd)"/ -type f -name wp-config.php | sed 's/wp-config.php//g') do echo "$wpinstall" dbname=$(grep...

chrome fv2MgTNCAE - Backup WordPress files and database via SSH

Backup WordPress files and database via SSH

This one-liner will backup your WordPress files and database into a directory name with today’s date. mkdir -p ../backup/$(date +%Y-%m-%d) ; mysqldump $(grep DB_NAME wp-config.php | grep -v WP_CACHE_KEY_SALT | cut -d \' -f 4) | gzip > ...

chrome q93DfQYoyT - WordPress SMTP settings via functions.php

WordPress SMTP settings via functions.php

Like many other PHP scripts, WordPress also uses PHPmailer to send transactional emails. If no email is set for sending emails, WordPress will use the default cPanel email account (username@domain.com) which isn’t pretty. To specify...

chrome Yibr4IgoiI - SH4LL AAF_Xploiter

SH4LL AAF_Xploiter

The shell contains an interesting feature that records each action performed by the script and sends to the attacker the IP address from which the request originates, as well as the file path. So we can see all the pages that were viewed or modified...

cwp wp panel - How to Install WordPress in Control Web Panel (CWP)

How to Install WordPress in Control Web Panel (CWP)

In this guide, I will be setting up CWP on a small VPS, then install WordPress. This process consists of: Installing CWPSetting up CSFChange Default package limitsSet a custom PHP versionCreate a new accountCreate MySQL database and userInstall...

image 17 - Exclude ai1wm-backup folder from Softaculous backups

Exclude ai1wm-backup folder from Softaculous backups

For WordPress websites that use both Softaculous backups and AllInOne Migration plugin backups, Softaculous backups include the .wpress files created by the ai1wm plugin and therefore this will significantly increase the size of Softaculous...

crawler cron - Enable LiteSpeed crawler on WordPress & cPanel

Enable LiteSpeed crawler on WordPress & cPanel

To enable LiteSpeed Crawler option server-wide in cPanel, edit the following file /etc/apache2/conf.d/includes/pre_main_global.conf By the official cPanel docs, only the following is mandatory: <IfModule Litespeed> CacheEngine on crawler...