Action disabled: source

usefull urls

joomla install: http://fastjoomlahost.com/joomla-nginx-set-configuration
ngnix maridb phpfpm install: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7
install bind: http://www.unixmen.com/setting-dns-server-centos-7/

network config

open network config file:

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

change this lines:

BOOTPROTO=none
IPADDR=۱۹۲٫۱۶۸٫۱۰۰٫۱۵۰
NETMASK=۲۵۵٫۲۵۵٫۲۵۵٫۲۴۸
GATEWAY=۱۹۲٫۱۶۸٫۱۰۰٫۱۴۷
ONBOOT=yes
DNS1=8.8.8.8

restart network and ckeck internet connection:

service network restart
ping 8.8.8.8

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/db.example.com:

5. check for listen on 53:

netstat -tunalp | grep 53
tcp        0      0 192.168.50.107:53       0.0.0.0:*               LISTEN      26813/named         
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      26813/named   

iptables

setenforce 0
service firewalld stop
service iptables stop
service ip6tables stop
systemctl disable firewalld
systemctl disable iptables
systemctl disable ip6tables
/etc/sysconfig/selinux
SELINUX=disabled