OpenLiteSpeed Monit

Monitor OpenLiteSpeed with monit

OpenLiteSpeed Monit

To monitor OpenLiteSpeed with monit on Ubuntu Server, create file

Add following content

Reload monit with

Now monit will monitor OpenLiteSpeed, restart if required. You can check status with

monit status openlitespeed

If you want to monitor if web server is responding to request, you can use


inotifywait monitor changes in Linux file system. It can be used to track file changes.

Here is inotifywait command used by bitninja to detect uploaded files.


Disable ModSecurity for a specific URL

On a web site that is protected with ModSecurity, when admin edit HTML pages in admin area, ModSecurity falsely detect it as XSS attack.


What we can do is disable specific rules that create this false positive. But in this case, it is bceause HTML is submitted. This application normally done need HTML submitted on any other part of the site. So it is better just disable ModSecurity for the specific URL that cause this error.

To do this, add following code to Apache VirtualHost entry for this web site.

This will disable ModSecurity for URLs /admin_area/manage_pages.php and /admin_area/edit_announcement.php

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


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

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


To connect to MySQL console, run

See EasyEngine


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