Jump to content

install permissions with SELinux (Centos 7)


quickq

Recommended Posts

Hi all,

 

This on a Centos 7 server with SELinux enabled.

 

Just bought WHMCS and starting to install. I get to the requirements check page where I've got 4 warnings:

 

configuration.php needs to be writeable

attachments, downloads and templates_c need to be writeable.

 

So, I setsebool -P httpd_enable_homedirs 1

Then semanage fcontext -a -t httpd_user_content_t '/home/whmcs/app/public_html(/.+)?'

restorecon -Rv

 

But the same errors come up.

 

Could any one advise please?

 

Thanks

Link to comment
Share on other sites

  • 4 years later...

Hello, I had to set "SELINUX=disabled" on my CentOS 7 vm to install WHMCS.

After that, and once it was already working and running, I decided to set it back to "SELINUX=enforcing" and now It get the error once again:"The templates compiling directory '/var/www/my.mosaic.site/whmcs/templates_c' must be writeable (CHMOD 777) before you can continue."

Permissions on "template_c" are like this: "drwxrwxrwx.  2 root root   8192 Aug  6 14:29 templates_c"

What can I do to fix this issue without setting SELINUX back to disabled ?

Thanks.

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated