FOR NGINX CENTOS 8:
Mã:
cd
echo 0 > /selinux/enforce
setenforce 0
chkconfig mariadb on
chkconfig nginx on
chkconfig php-fpm on
chkconfig crond on
chkconfig ntpd on
systemctl enable mariadb
systemctl enable nginx
systemctl enable php-fpm
systemctl enable crond
systemctl enable ntpd
chown -R nginx:nginx /var/www/html
chown -R nginx:nginx /usr/share/nginx
chown -R nginx:nginx /home
chown -R nginx:nginx /var/lib/php
chmod 0777 -R /var/lib/php/session
chmod 0777 -R /var/lib/php/wsdlcache
ln -sf /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo systemctl mask --now firewalld
service nginx restart
service php-fpm restart
service mariadb restart
service crond restart
service ntpd restart
cd /root
rm -rf install-nginxcentos8.log
rm -rf nginxcentos8.sh
history -cw
reboot
cd