Feb 4, 2018

CentOS 7 Open HTTP Port

Cek Active Zone
#firewall-cmd --get-active-zones

JIka Active Zone adalah public
#firewall-cmd --zone=dmz --add-port=2888/tcp --permanent

Reload Firewall
#firewall-cmd --reload

Untuk mengaktifkan upload file, kita harus melakukan setting SELinux
# SELinux serve files off Apache, resursive
sudo chcon -t httpd_sys_content_t /data/www/html/sites/mysite -R
# Allow write only to specific dirs
sudo chcon -t httpd_sys_rw_content_t /data/www/html/sites/mysite/logs -R
sudo chcon -t httpd_sys_rw_content_t /data/www/html/sites/mysite/uploads -R
Powered by Blogger.

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search