selinux often breaks applications or scripts and it’s necessary to disable selinux. To disable selinux:
echo 0 > /selinux/enforce