When using FTP from a slow internet connection, files are not fully transferred, and the following error is recorded in the messages log: [INFO] Timeout – try typing a little faster next time To resolve this, edit pureftpd configuration file:...
Here is how to backup a VPS “from the inside” Create a directory for the container: mkdir /backup Create an archive vpsbackup.tar.gz of all files and place it in this folder: tar -zcvpf /backup/vpsbackup.tar.gz --directory=/ ...
To disable SELinux for this boot:
setenforce 0
To permanently disable SELinux edit the configuration file:
nano /etc/selinux/config
or
nano /etc/sysconfig/selinux
find SELINUX=enforcing and replace it with SELINUX=disabled
then reboot the system.
Here is how to check when an EC2 instance was created: Option 1. Check the Volume attachment time Option 2. Using a Python script import boto3 ec2 = boto3.resource('ec2', region_name='instance_region_name') volume = ec2.Volume('vol-id') print volume...
Here are 3 different ways to restart EC2 AWS Instance: 1. Reboot EC2 Instance using AWS Console Login into your AWS EC2 ConsoleNavigate to “Instances” and Select instance which you want to restart, right-click on it and then select...
From time to time I’m experiencing Connection timed out errors in cPanel > Sent Summary and I need a way to run MTR at that exact time to troubleshoot the network problem. For this I can create a new script, mtr.sh: /usr/sbin/mtr -r -c 2...
To enable debug mode in CakePHP go to config folder and open app.php find ‘debug’ => filter_var(env(‘DEBUG’, false), FILTER_VALIDATE_BOOLEAN), and change the value of debug false to true Older CakePHP versions To enable...
Shell scripts are always to handy to do some tasks on a Linux-based server for SysAdmins, they can automate everything they do frequently through a shell script. Here I’m going to share a simple script that I got from Muhammed Fasal to monitor...
When migrating a WordPress website database import failed with the error: mysql -u USERNAME -p DB-NAME < /PATH/dump.sql ERROR 1227 (42000) at line 3258: Access denied; you need (at least one of) the SUPER privilege(s) for this operation so I...
Emails sent from cPanel to yahoo users are being rejected with the following error: Messages from X temporarily deferred due to unexpected volume or user complaints – 4.16.55.1; see This happens because the IP was blacklisted by Yahoo due to...