- updated RHEL/CentOS installation docs #2043

Merged
merged 8 commits into from Oct 6, 2015

Projects

None yet

5 participants

@paszczus
paszczus commented Oct 2, 2015

No description provided.

Sławomir Pas... added some commits Oct 2, 2015
Sławomir Paszkiewicz - updated RHEL/CentOS installation docs
c09d81d
Sławomir Paszkiewicz - added configuration for SELinux
a947f38
Sławomir Paszkiewicz - create session dir for php-fpm
970d83d
@f0o f0o commented on an outdated diff Oct 3, 2015
doc/Installation/Installation-(RHEL-CentOS).md
@@ -20,15 +20,15 @@ service mysqld start
**MariaDB**
```bash
yum install net-snmp mariadb-server mariadb-client
-chkconfig mariadb on
-service mariadb start
+systemctl enable mariadb
+systemctl start mariadb
@f0o
f0o Oct 3, 2015 Member

These two wont work for CentOS 6 MariaDB. Retain chkconfig and service they will work with CentOS 7 as well afaik.

@paszczus
paszczus commented Oct 3, 2015

Indeed. I will fix this, thanks for pointing that out!

Sławomir Paszkiewicz - fixes for compability with CentOS 6
8490ec0
@paszczus
paszczus commented Oct 3, 2015

@f0o now it should be OK

@f0o f0o commented on an outdated diff Oct 3, 2015
doc/Installation/Installation-(RHEL-CentOS).md
> If you're planing on running rrdcached, make sure that the path is also chmod'ed to 775 and chown'ed to librenms:librenms.
+**SELinux**
+> if you're using SELinux you need to allow nginx to write into logs directory.
+> semanage tool is a part of policycoreutils-python, so if don't have it, you can install it
+
@f0o
f0o Oct 3, 2015 Member

Please note here that SELinux is still experimental to us, we cant guarantee it working yet

@MindTooth
Contributor

I'll do a clean install based on the new steps on Monday, if you would like a second input?

Sławomir Paszkiewicz - LibreNMS and SELinux is still experimental
4e74724
@paszczus
paszczus commented Oct 4, 2015

@f0o i have added a note about SELinux, however i`m testing it on my production with SELinux so if everything will be working fine i will remove that note, what do you think? But for now i think this pull can be merged

@laf
Member
laf commented Oct 4, 2015

@paszczus

Where you have:

service mariadb start (systemctl start mariadb on CentOS 7)

Doesn't service mariadb start still work in CentOS 7? I thought it did?

If not and we need to keep that can you split out to:

CentOS 5/6:
service mariadb start

CentOS 7:
systemctl start mariadb

@paszczus
paszczus commented Oct 4, 2015

IT will work but this is not proper way to do this, systemctl should be used.
Spliting out that will also require to split it in other parts (nginx, apache etcetera)...

@laf
Member
laf commented Oct 4, 2015

Then I think we need to either stick with just system X start or split it out, those commands are designed to be copied and pasted and people will blindly just copy and paste them.

@laf laf closed this Oct 4, 2015
@laf laf reopened this Oct 4, 2015
@laf
Member
laf commented Oct 4, 2015

Sorry (didn't mean to close)

Sławomir Paszkiewicz - separated commands for CentOS 6 and CentOS 7
1c51ddd
@paszczus
paszczus commented Oct 5, 2015

@laf ok, please check out now. I have separated centos 6 and 7 commands

@f0o f0o and 1 other commented on an outdated diff Oct 6, 2015
doc/Installation/Installation-(RHEL-CentOS).md
@@ -20,15 +21,34 @@ service mysqld start
**MariaDB**
```bash
yum install net-snmp mariadb-server mariadb-client
-chkconfig mariadb on
-service mariadb start
+chkconfig mariadb on (systemctl enable mariadb on CentOS 7)
+service mariadb start (systemctl start mariadb on CentOS 7)
@f0o
f0o Oct 6, 2015 Member

These two became redundant with the ones further down. Remove?

@paszczus
paszczus Oct 6, 2015

sure, i`m missed that. thanks

@f0o f0o and 1 other commented on an outdated diff Oct 6, 2015
doc/Installation/Installation-(RHEL-CentOS).md
yum install epel-release
- yum install php php-cli php-gd php-mysql php-snmp php-pear php-curl httpd net-snmp graphviz graphviz-php mysql ImageMagick jwhois nmap mtr rrdtool MySQL-python net-snmp-utils vixie-cron php-mcrypt fping git
+yum install php php-cli php-gd php-mysql php-snmp php-pear php-curl httpd net-snmp graphviz graphviz-php mysql ImageMagick jwhois nmap mtr rrdtool MySQL-python net-snmp-utils vixie-cron php-mcrypt fping git
@f0o
f0o Oct 6, 2015 Member

Please re-add the indent

@f0o f0o commented on an outdated diff Oct 6, 2015
doc/Installation/Installation-(RHEL-CentOS).md
cp config.php.default config.php
- vim config.php
+ vim config.
@f0o
f0o Oct 6, 2015 Member

filename should be config.php :)

Sławomir Paszkiewicz - fixes after last changes
f879fdc
@f0o f0o commented on an outdated diff Oct 6, 2015
doc/Installation/Installation-(RHEL-CentOS).md
> If you're planing on running rrdcached, make sure that the path is also chmod'ed to 775 and chown'ed to librenms:librenms.
+**SELinux**
+> if you're using SELinux you need to allow nginx to write into logs directory.
@f0o
f0o Oct 6, 2015 Member

It's not only nginx that needs to be able to write into logs :)

Could we make it more bold that we dont currently support SELinux at all and that we're still figuring a correct policy?

@f0o
Member
f0o commented Oct 6, 2015

Wrote some last notes, happy to merge after those are sorted/discussed 👍

@f0o f0o added the Documentation label Oct 6, 2015
@f0o f0o self-assigned this Oct 6, 2015
Sławomir Paszkiewicz - another part of fixes
58e8e19
@paszczus
paszczus commented Oct 6, 2015

fixes made

@f0o f0o merged commit 600e0fd into librenms:master Oct 6, 2015

2 checks passed

Auto-Deploy Build finished. No test results found.
Details
Scrutinizer No new issues
Details
@paszczus paszczus deleted the paszczus:docs_centos branch Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment