usefull urls

joomla install:
ngnix maridb phpfpm install:
install bind:

network config

open network config file:

vi /etc/sysconfig/network-scripts/ifcfg-ens32

change this lines:


restart network and ckeck internet connection:

service network restart

yum installations and upgrade

yum upgrade -y
yum install nano net-tools bind bind-utils

add web user

create new user:

adduser web
passwd web

add user to sudo group:

gpasswd -a web wheel

open ssh config file:

nano /etc/ssh/sshd_config

find this line:

PermitRootLogin yes

change it to:

PermitRootLogin no

restart sshd service:

systemctl reload sshd

migrate files

make archive:

tar cvfz web.tgz [virtualhostdir+bindconfigs+....]

scp files:

scp backup.tgz root@ip_address:/root/

extract files:

tar xvfz web.tgz

flush the cache

sync; echo 3 > /proc/sys/vm/drop_caches

dns installation

1. open bind configuration file:

nano /etc/named.conf

2. add any; to allow-query and listen-on port 53

3. add zone file address:

zone "unixmen.local" IN {
type master;
file "forward.unixmen";
allow-update { none; };

4. create zone file in /var/named/

5. check for listen on 53:

netstat -tunalp | grep 53
tcp        0      0*               LISTEN      26813/named         
tcp        0      0  *               LISTEN      26813/named   


setenforce 0
service firewalld stop
service iptables stop
service ip6tables stop
systemctl disable firewalld
systemctl disable iptables
systemctl disable ip6tables