# RHEL / CentOS 8 Install issues

**URL:** <https://forum.mattermost.com/t/rhel-centos-8-install-issues/9173>\
**Category:** Troubleshooting\
**Created:** [March 14, 2020, 5:02pm UTC](https://forum.mattermost.com/t/rhel-centos-8-install-issues/9173 "2020-03-14T17:02:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wally4u](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@wally4u](https://forum.mattermost.com/u/wally4u)\
**Post date:** [March 14, 2020, 5:02pm UTC](https://forum.mattermost.com/t/rhel-centos-8-install-issues/9173/1 "2020-03-14T17:02:20Z")

</div>

Hi All,  
Today I spend my day trying to install the Linux version (non docker) on CentOS 8 (Stream).  
Using the Installation Tutorial Provided [here](https://docs.mattermost.com/install/install-rhel-7.html#) I progressed nicely, until I ran across subtle differences between CentOS 7 and CentOS 8.

Here are my notes that might save some others some headaches.

NOTE: I only tried to install the postgresql database not MySQL.

**Postgress:**  
You don’t need to manually add the yum rpm files.

```
sudo yum install postgresql-server postgresql-contrib

```

Will install postgresql v10 just fine. You only need to adapt to a different installation directories.  
Example;  
`sudo /usr/pgsql-9.4/bin/postgresql94-setup initdb` will become `sudo /usr/bin/postgresql-setup initdb`  
`sudo systemctl enable postgresql-9.4` will become `sudo systemctl enable postgresql`

FirewallD appears to be enabled by default, so either disable it during intallation (and enable and config later) or add proper firewall rules. Helps when you receive `failed to ping db` errors.

When editing the systemcrl mattermost.service file note that the its called posgresql.service now.

If you receive `mattermost.service: Failed at step EXEC spawning /opt/mattermost/bin/mattermost: Permission denied` errors this is due to SELinux security preventing systemd launching the mattermost binary. I haven’t figured out how to manually add exception rules, but an easy fix it to set SELinux to permissive mode by editing

> /etc/selinux/config

to `SELINUX=permissive`

You should be able to run mattermost now on RHEL / CentOS 8.

I tried installing nginx 1.14 (via yum install nginx), but it appears that the way the config files work have changed since the tutorial has been written. I managed to get re reverse proxy working but still get 502 errors. So I cannot help there.

Cheers  
Wally4u

---

<div class="post-metadata">

**Author:** ![paulrothrock](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/paulrothrock/32/2967_2.png) [@paulrothrock](https://forum.mattermost.com/u/paulrothrock)\
**Post date:** [March 17, 2020, 6:29pm UTC](https://forum.mattermost.com/t/rhel-centos-8-install-issues/9173/2 "2020-03-17T18:29:11Z")

</div>

Hi wally4u,

Thanks for these updates! Could you create an issue for these changes in our [docs Github repo?](https://github.com/mattermost/docs) Then someone from our team or a community member can add them to the docs. If you’re feeling up to it you can contribute a change by following [these steps](https://github.com/mattermost/docs#contributing).
