Login to your server root
Them run
sudo crontab -e
Select an editor.
Set the job
# m h dom mon dow command
0 4 * * * /sbin/shutdown -r +5
m=minute
h=hour
dom=day of month
mon=month
dow=day of week
by dev
Login to your server root
Them run
sudo crontab -e
Select an editor.
Set the job
# m h dom mon dow command
0 4 * * * /sbin/shutdown -r +5
m=minute
h=hour
dom=day of month
mon=month
dow=day of week
by dev
Step 1
Login as root user to SSH of freshly installed Ubuntu 20.04
Step 2
Disable firewall, while installing cpanel & whm on linux ubuntu system
iptables-save > ~/firewall.rules systemctl stop firewalld.service systemctl disable firewalld.service
Step 3
Update Ubuntu System Packages
apt update apt upgrade
Step 5
Set your hostname for example my.hostname.com
set hostname my.hostname.com
edit hostname vi /etc/hosts vi /etc/hostname
Reboot the server.
Step 6
Create a shell session of Linux Screen utility. It helps to remain active even after the network disruption.
screen
If the screen is not installed, install it.
apt install screen
Step 7 – Install Cpanel/WHM
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Step 5 – Login to WHM Web interface
https://SERVER_IP:2087
Use your root login credentials.
That’s All!
by dev
The error was: SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
innodb_strict_mode = 0
by dev
How to change the SSH port
vi /etc/ssh/sshd_config
port 1234
/scripts/restartsrv_sshd
ssh USER@HOSTNAME -p1234
by dev
Access MariaDB Server
mysql -u root -p
Create new database
CREATE DATABASE bdhostidb;
Check whether the database created
SHOW DATABASES;
GRANT ALL PRIVILEGES ON 'sqI_bdhositit_co'.* TO 'sqI_bdhositit_co'@localhost;