FOR APACHE CENTOS 7:
Mã:
cd
echo 0 > /selinux/enforce
setenforce 0
chkconfig mariadb on
chkconfig httpd on
chkconfig crond on
chkconfig ntpd on
systemctl enable mariadb
systemctl enable httpd
systemctl enable crond
systemctl enable ntpd
chown -R apache:apache /usr/share/nginx
chown -R apache:apache /var/www/html
chown -R apache:apache /home
chown -R apache:apache /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 httpd restart
service mariadb restart
service crond restart
service ntpd restart
cd /root
rm -rf install-apacheos7.log
rm -rf apacheos7.sh apacheos7php7.sh
history -cw
reboot
cd