Port forward using iptables

To forward all request on port 80 to port 8080, run

Related Posts



ASTPP is a Open Source VoIP Billing Solution for Freeswitch. It supports prepaid and postpaid billing with call rating and credit control.


To install ASTPP on CentOS 7, run

Related Posts


Install Caddy Web Server

Caddy is a light weight web server written in golang. Caddy auto generate SSL for your web site using LetsEncrypt and support HTTP/2.

To instal Caddy, download latest Caddy release from github


At the time of this post, 1.3 is latest stable release, to install it, run

Make caddy listen to privilage ports 80 and 443

If you don’t have a system user for caddy to run as, create one

Create config folder for caddy

Create Caddy config file


Replace lab.serverok.in with whatever domain you need to host.

Create service file for caddy

Start caddy with

Enable caddy start on boot

curl set user agent

When using curl linux command line tool, to set user agent, run

You can also use

phpMyAdmin allow connecting to multiple servers

phpMyAdmin configuration file is config.inc.php located in phpMyAdmin install folder.

To enable connecting to arbitary Server, add

This will allow you to enter server IP or hostname to connect to.

To add connecting to differnt predefined servers, you can add following to end of config.inc.php

Repeat this for any number of MySQL servers you need to connect.

Related Posts

MySQL root can’t login to phpMyAdmin



iostat – Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.

The iostat command is used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The iostat command generates reports that can be used to change system configuration to better balance the input/output load between physical disks.

The first report generated by the iostat command provides statistics concerning the time since the system was booted. Each subsequent report covers the time since the previous report. All statistics are reported each time the iostat command is run. The report consists of a CPU header row followed by a row of CPU statistics. On multiprocessor systems, CPU statistics are calculated system-wide as averages among all processors. A device header row is displayed followed by a line of statistics for each device that is configured.

The interval parameter specifies the amount of time in seconds between each report. The first report contains statistics for the time since system startup (boot). Each subsequent report contains statistics collected during the interval since the previous report. The count parameter can be specified in conjunction with the interval parameter. If the count parameter is specified, the value of count determines the number of reports generated at interval seconds apart. If the interval parameter is specified without the count parameter, the iostat command generates reports continuously.

iostat is part of sysstat package. To install on Debian/Ubuntu, run

To enable sysstat to collect data, edit file


Replace with

To see current IO Usage, run


To show information in one line, run

linux iostat

The number 2 is to print stats every 2 seconds. 5 is to print the stats 5 times.

Other iostat options

Related Posts

Server Load

CentOS 7 iinstall PHP 7.4

Install PHP 7.4 on CentOS 7

To install PHP 7.4 on CentOS 7, first install remi repository.

Set PHP 7.4 as default PHP

Install PHP with

After installing check PHP version with php -v, you will see

CentOS 7 iinstall PHP 7.4

At the time of installation, it is PHP version 7.4.0RC3, it will change as new 7.4 release become available.

Related Posts

Install PHP 7.2 on Ubuntu
Install PHP 7.3 in CentOS 8

Plesk License Number

Plesk Change Backup Location

By default, Plesk store backups in folder /var/lib/psa/dumps/. To move this to a differnt partition or directory, create a folder

Edit file


Replace with

Move old backup to new location

Remove old backup directory, here i rename it to dumps-old, you can delete it.

Restart Plesk

Related Posts

Plesk MySQL Daily Backup Script