yum list available

yum list all available packages in a repo

To list all packages available on a specific repo, run

Example:

yum list available

This command list all packages available in repo “litespeed”

Install ModSecurity on Debian

To install ModSecurity on Debian/Ubuntu Apache web server, run

Restart Apache web server

Verify mod_security installed with

To activate ModSecurity rules, run

Edit

set

Get latest rules

Emable the config file

Edit file

Add

Restart Apache

OpenLiteSpeed restart PHP

On OpenLiteSpeed, if you edit php.ini or installed a PHP module, restart OpenLiteSpeed won’t show the changes. You will need to restart PHP process.

You can do this by killing all PHP process with

Or you can create a file

If you need PHP restarted just for a web site, run

Migrate IMAP emails using imapsync

To copy emails from one mailbox to another using imapsync, use

Example

In this example, source and destination email and passwords are the same.

Install LAMP Server on Ubuntu/Debian

To install LAMP (Apache, MySQL, PHP) on Ubuntu/Debian web server, run

This use meta package install LAMP. If you want to remove, don’t remove the meta package as it will remove many other required packages. You need to remove packages one by one.

Related Posts

Apache

MySQL

EasyEngine WordPress Database Backup

EasyEngine backup WordPress Database

EasyEngine run database of web sites in a Docker container. To take backup of MySQL database used by a WordPress website, you can run command

This will create database backup on document root of the web site.

EasyEngine WordPress Database Backup

See EasyEngine

EasyEngine Admin Tools

Enable Admin Tools in EasyEngine

EasyEngine come admin tools. This include phpMyAdmin, phpinfo, OpCache GUI, nginx status.

EasyEngine Admin Tools

To enable admin tool, run

Admin tools are password protected, to get login details, run

You can login to admin tools at

Accessing phpMyAdmin

The pma link in EasyEngine Admin tools take you to phpMyAdmin login page. To login, you need to use MySQL login details for your web site. This you can get by checking your web site configuration file.

You will be able to find your web site files in document root of your web site at

See EasyEngine

EasyEngine Connect to MySQL Database

To Find MySQL root password on EasyEngine, run

Or

To connect to MySQL console, run

See EasyEngine

apache-http-webserver

Find IP with Most Access from Apache Log

To find IP with most access from Apache or other web server log file, run

If you want to see IP that made most POST request

See Hacked log