what OS are you using?View attachment 75837
I'm having a problem and I don't understand the reason and i disbale selinux
(FATAL): Unable to create /etc/selinux/config
sestatus
yum provides /etc/selinux/config
$chattr -i /etc/selinux/co
that was very helpful - Thank youmaybe this: (FATAL): Unable to create /etc/selinux/config
or this
The following command:
will tell you which package does the file belong to and whether the package has been installed.Code:yum provides /etc/selinux/config
I got this error installing DNSOnly. This (below) solved it for me. But what's the problem/is there a bug fix in for this?Great suggestions - let us know if that helps, @ndmanhcuong
this is OS specific not cPanel bugfix and OS has Selinux enabled.I got this error installing DNSOnly. This (below) solved it for me. But what's the problem/is there a bug fix in for this?
-------------------------------------------------------------------------------------------------------
If this result:
$lsattr /etc/selinux/config
----i--------e-- /etc/selinux/config
Then use:
$chattr -i /etc/selinux/config
Check:
$lsattr /etc/selinux/config
-------------e-- /etc/selinux/config
If result is last line above, retry install.
1 2 3 4 5 6 7 8 9 10 | # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted |
I checked first and selinuz WAS disabled already. The problem is the immutable attribute on the file. This would stop any cPanel install, not just DNSOnly, correct?That's correct - selinux should be disabled before installing cPanel or DNSOnly.
It is definitely present since that's how it is disabled, AFAIK.The config file may still be present even if the tool itself is disabled.
I'm not aware of any adjustments to the installer, although we did have another user report this recently: SOLVED - Cpanel install error can not create /etc/selinux/config
Yes, it does, and I'm wondering if that's what changed (or else the default attrib for the file?). Seems like a better solution would be to check wither the disable line is in the file, and if so, move on.I looked through our installer and it seems like we attempt to create the file whether it exists or not. I'm going to make a cause with our developers so they can look into this.