Application removal in plesk which is not automatically removed after uninstall

First log in to Plesk then check which domain the application isinstalled under Go to “Websites & Domains” and hover over the domain.
You should see something like https://localhost:8443/smb/web/settings/id/xxx
We want the Last number: xxx (555 for example)

Now you will need to login to the psa database:
cmd cd “path to your admin mysql\bin directory”

Provide the following command in windows command prompt:

#cd %plesk_dir%\mysql\bin && mysql.exe -u admin -P8306 psa -p

mysql –port=8306 -uroot -pThepassword

mysql> use psa;
mysql> select id from apsresources where pleskID=555;
| id |
| 101 |
| 102 |

mysql> delete from apsresourcesparameters where apsResourceId = 101;
Query OK, 2 rows affected (0.02 sec)

mysql> delete from apsresourcesparameters where apsResourceId = 102;
Query OK, 10 rows affected (0.00 sec)

mysql> delete from apsresources where pleskID=555;
Query OK, 2 rows affected (0.02 sec)

The ID 101 and 102 in this case are my plesk id replace it withcorresponding id that you get.
You should be good to go


UPCP failed cPanel : TIMEOUT: RPM DB is not responding

The cPanel update failed with following error :
Fatal: Your RPM database appears unstable. It is not possible at the moment to install a simple RPM.

The RPM database is corrupted which is causing the problem.
Follow the below steps to fix this issue:

1. mkdir /root/old_rpm_dbs/
2. mv /var/lib/rpm/__db* /root/old_rpm_dbs/
3. rpm rebuilddb
4. Then run, #upcp –force

Bandwidth Throttling

Throttling can be used to actively limit a user’s upload and download rates on programs such as video streaming,

Website throttling is the intentional slowing of website. It is a reactive measure employed in communication networks in an apparent attempt to regulate network traffic and
minimize website congestion. Website throttling can occur at different locations on the network.

On a broader level, the internet service provider may use bandwidth throttling to help reduce a user’s usage of bandwidth that is supplied to the local network.
Bandwidth throttling is also often used in Internet applications, in order to spread a load over a wider network to reduce local network congestion, or over a number of servers
to avoid overloading individual ones, and so reduce their risk of crashing, and gain additional revenue by compelling users on to more expensive pricing schemes where
bandwidth is not throttled.

Continue reading…

Backup and Restore MBR in Linux

The Master Boot Record (MBR) is the first 512 bytes of a storage device. The MBR is not a partition, it is reserved for the operating system’s boot-loader and the storage device’s partition table.

MBR Total Size
446 + 64 + 2 = 512

446 bytes Bootstrap.
64 bytes Partition table.
2 bytes Signature.

To backup the MBR:

dd if=/dev/sda of=/path/mbr-backup bs=512 count=1

To restore the MBR and partition table:

dd if=/path/mbr-backup of=/dev/sda bs=512 count=1

Restoring the MBR with a mismatching partition table will make your data unreadable.

To restore the MBR:

dd if=/dev/zero of=/dev/sda bs=446 count=1