Debian OS version Upgrade from buster to bullseye
Step 1:
cp -pv /etc/apt/sources.list /etc/apt/sources.list.bak
Step 2, replacing OS name in the sources.list file:
nano /etc/apt/sources.list
Before:
Continue reading
Step 1:
cp -pv /etc/apt/sources.list /etc/apt/sources.list.bak
Step 2, replacing OS name in the sources.list file:
nano /etc/apt/sources.list
Before:
Continue reading
Installing additional repository:
yum install epel-release -y
Installing Redis:
yum install redis -y
Enable the service on the server startup:
systemctl enable redis; systemctl start redis
Installing PHP 7.4 modules for Redis:
/opt/cpanel/ea-php74/root/usr/bin/pecl install igbinary igbinary-devel redis
Original post on cPanel forum
runuser -l username -c 'cd $;pwd'
Original post
one string script:
yum install -y ea-apache24-mod_remoteip;echo '' > /etc/apache2/conf.modules.d/370_mod_remoteip.conf; echo -e "LoadModule remoteip_module modules/mod_remoteip.so\nRemoteIPHeader X-Forwarded-For\nRemoteIPInternalProxy 127.0.0.1\n" >> /etc/apache2/conf.modules.d/370_mod_remoteip.conf; for i in `ip a|grep inet|grep -v "inet6\|127.0.0.1"|awk {'print $2'}|awk -F/ {'print $1'}`;do echo -e "RemoteIPInternalProxy $i" >> /etc/apache2/conf.modules.d/370_mod_remoteip.conf;done;service httpd restart
first, we need to create the custom template:
nano /var/cpanel/zonetemplates/root_standard
content:
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
3600 ; refresh, seconds
1800 ; retry, seconds
1209600 ; expire, seconds
86400 ) ; minimum, seconds
%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.
%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%
%domain%. IN A 2.2.2.2
%domain%. IN A 3.3.3.3
www IN CNAME %domain%.
Then we can add the new domain from the command line:
whmapi1 adddns domain='test3.com' ip='1.1.1.1'
To find the missed packages we can use the following command:
awk '$4=="E"' /var/cpanel/updatelogs/last
It will allow us to see the missed RPMs and install them after via yum.
The original article is stored here