Enable sar in Ubuntu

On Ubuntu, when i run sar, i get error

This is because sysstat is not enabled by default on Ubuntu, to enable, edit file

Find

Replace with

Now restart sysstat

See sar […]

Read More…

Running MySQL inside docker

On a Cpanel Server with old version of PHP, one of the application require MySQL 5.6 to work. Since PHP version is no longer supported, updating MySQL using WHM will upgrade PHP to one of the supported versions, that may break existing sites. So i decided to install MySQL inside docker. First create a folder […]

Read More…

docker

If you need to try docker on web with out installing on your computer, use https://labs.play-with-docker.com Docker Install Install Docker on Ubuntu 16.04 Install Docker on Ubuntu 18.04 Docker Basics docker run docker exec docker login docker search docker build Backup and Restore Docker Image Docker Delete Conatiner/Image Delete all docker containers Docker Delete all […]

Read More…

Backup with tar

To backup a site using tar, i created a shell script.

With following content

For weekly backup

Make it executable

Create backup folders

Set cronjob

Add

See backup […]

Read More…

automysqlbackup

Auto backup all your MySQL databases daily, weekly and monthly. To install on Debian/Ubuntu, run

To manually backup, run

MySQL backups will be stored in folder

See backup […]

Read More…

zfs

Install zfs file system on Ubuntu

Listing ZFS file systems

List pools

Show current IO usage

To see status

Setup ZFS file system in Ubuntu […]

Read More…

sendmail

To test mail using sendmail, use

Dot in last time tell sendmail that message body is ended and it can send mail. […]

Read More…

maldet

Sent maldet scan report to email To install maldet, run

Configure Maldet to sent email

Update Maldet

To scan everything, run

To scan a folder

To scan all public_html folders

To scan content created/modified in last 10 days, run

Ignore a folder in maldet […]

Read More…

self signed ssl

To generate self signed SSL certificate, run

Or

Add Self Signed SSL to Apache Virtual Host Lets say your Apache virtualhost entry is

Create a new VirtualHost entry based on this, say yourdomain-ssl.conf, in this new file Find

Replace with

Find line starting with

Add Below

Now restart […]

Read More…