CPANEL-40381 - I need help install cpanel
I'm having a problem and I don't understand the reason and i disbale selinux
(FATAL): Unable to create /etc/selinux/config
-
I'm having a problem and I don't understand the reason and i disbale selinux (FATAL): Unable to create /etc/selinux/config
what OS are you using? if you type in terminal #sestatus
what do you get?0 -
maybe this: (FATAL): Unable to create /etc/selinux/config or this The following command: yum provides /etc/selinux/config
will tell you which package does the file belong to and whether the package has been installed.0 -
Great suggestions - let us know if that helps, @ndmanhcuong 0 -
$lsattr /etc/selinux/config ----i--------e-- /etc/selinux/config $su $chattr -i /etc/selinux/config $lsattr /etc/selinux/config -------------e-- /etc/selinux/config Try reinstall it again and will be continue. 0 -
Great suggestions - let us know if that helps, @ndmanhcuong
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.0 -
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.
this is OS specific not cPanel bugfix and OS has Selinux enabled. SELinux Mode documentation.- While cPanel & WHM can function with SELinux in permissive mode, we recommend that you do not use it. Permissive mode generates a large number of log entries.
- To check the status of SELinux on your server, run the sestatus command.
- Do not transfer the SELinux configuration file between computers. It may destroy the file"s integrity.
0 -
That's correct - selinux should be disabled before installing cPanel or DNSOnly. 0 -
That's correct - selinux should be disabled before installing cPanel or DNSOnly.
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? $ sestatus SELinux status: disabled $ cat /etc/selinux/config SELINUX=disabled $ lsattr /etc/selinux/config ----i--------e-- /etc/selinux/config $chattr -i /etc/selinux/config $lsattr /etc/selinux/config -------------e-- /etc/selinux/config Then the install goes fine. I should have no concerns, correct? Is this check a recent addition? I ask because the provider also has an option to deploy with cPanel (Standard) installed, and selinux is disabled but the immutable attribute is set on the config file. So it appears to have not been an issue when they created their image (it's not 102 so I know it's an image, not an latest install).0 -
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. 0 -
My provider, Vultr, says that if they don't set the file immutable it ends up getting "changed later." Not sure how many providers are configuring this way, but there seems to be a reason. They also hadn't seen the cPanel install issue until now. Vultr: "This change was made a while back. This shouldn't and hasn't affected the installation of cpanel so far, so I think they made a change. We are going to recommend to people who need to install cpanel themselves to untag the attribute, install and retag." 0 -
After speaking with the installation team, I can confirm we haven't tweaked things on our end. This call will tweak things though in the future to avoid this issue completely. 0 -
Just to add on... At least for Vultr, it's recommenred by them to re-add that attribute after the install. It should not be an issue and might be preventing some other problem, per Vultr's tech recommendation. FYI: I've been running a server for years that has the attribute set with no issues. 0 -
Update - our team has resolved this issue. Since it's the installer itself it isn't linked to any particular version of cPanel. 0 -
Update - our team is releasing the installer with this fix now, and you'll see it in the changelogs at Installer Change Log | cPanel & WHM Documentation under version 00125. 0
Please sign in to leave a comment.
Comments
19 comments