fix: Errors in the documentations for CentOS 7 (#7510)

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* Some corrections to make docs work as intended.

* re-add httpd_execmem for nginx
This commit is contained in:
FTBZ
2017-10-18 21:38:56 +02:00
committed by Tony Murray
parent fc6386bf5f
commit 163d0b4f88
6 changed files with 23 additions and 11 deletions

2
.gitignore vendored
View File

@@ -22,10 +22,8 @@ html/plugins/*
!html/plugins/Test/ !html/plugins/Test/
includes/custom/* includes/custom/*
junk junk
logs
nbproject nbproject
patches patches
rrd
!/lib/yaml !/lib/yaml
/vendor /vendor
composer.phar composer.phar

View File

@@ -7,7 +7,7 @@ source: Installation/Installation-CentOS-7-Apache.md
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install composer cronie fping git httpd ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nmap php71w php71w-cli php71w-common php71w-curl php71w-gd php71w-mcrypt php71w-mysql php71w-snmp php70w-xml php71w-zip python-memcached rrdtool yum install cronie fping git httpd ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nmap php71w php71w-cli php71w-common php71w-curl php71w-gd php71w-mcrypt php71w-mysql php71w-snmp php71w-xml php71w-zip python-memcached rrdtool
#### Add librenms user #### Add librenms user
@@ -23,8 +23,8 @@ source: Installation/Installation-CentOS-7-Apache.md
#### Configure MySQL #### Configure MySQL
systemctl restart mariadb systemctl start mariadb
mysql -uroot mysql -u root
> NOTE: Please change the 'password' below to something secure. > NOTE: Please change the 'password' below to something secure.
```sql ```sql
@@ -85,7 +85,11 @@ Add the following config, edit `ServerName` as required:
#### SELinux #### SELinux
Install the policy tool for SELinux:
yum install policycoreutils-python yum install policycoreutils-python
Configure the contexts needed by LibreNMS:
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?' semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?'
@@ -137,7 +141,6 @@ Now head to the web installer and follow the on-screen instructions.
http://librenms.example.com/install.php http://librenms.example.com/install.php
### Final steps ### Final steps
Run validate.php as root in the librenms directory: Run validate.php as root in the librenms directory:

View File

@@ -7,7 +7,7 @@ source: Installation/Installation-CentOS-7-Nginx.md
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install composer cronie fping git ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nginx nmap php71w php71w-cli php71w-common php71w-curl php71w-fpm php71w-gd php71w-mcrypt php71w-mysql php71w-snmp php70w-xml php71w-zip python-memcached rrdtool yum install cronie fping git ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nginx nmap php71w php71w-cli php71w-common php71w-curl php71w-fpm php71w-gd php71w-mcrypt php71w-mysql php71w-snmp php71w-xml php71w-zip python-memcached rrdtool
#### Add librenms user #### Add librenms user
@@ -23,8 +23,8 @@ source: Installation/Installation-CentOS-7-Nginx.md
#### Configure MySQL #### Configure MySQL
systemctl restart mariadb systemctl start mariadb
mysql -uroot mysql -u root
> NOTE: Please change the 'password' below to something secure. > NOTE: Please change the 'password' below to something secure.
```sql ```sql
@@ -119,8 +119,12 @@ Delete the `server` section from `/etc/nginx/nginx.conf`
#### SELinux #### SELinux
Install the policy tool for SELinux:
yum install policycoreutils-python yum install policycoreutils-python
Configure the contexts needed by LibreNMS:
semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?' semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/logs(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?' semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/logs(/.*)?'
restorecon -RFvv /opt/librenms/logs/ restorecon -RFvv /opt/librenms/logs/
@@ -172,7 +176,6 @@ Now head to the web installer and follow the on-screen instructions.
http://librenms.example.com/install.php http://librenms.example.com/install.php
### Final steps ### Final steps
Run validate.php as root in the librenms directory: Run validate.php as root in the librenms directory:

View File

@@ -42,7 +42,7 @@ $config['db_socket'] = null;
$config['own_hostname'] = 'localhost'; $config['own_hostname'] = 'localhost';
// Location of executables // Location of executables
$config['fping'] = '/usr/bin/fping'; $config['fping'] = 'fping';
$config['fping6'] = 'fping6'; $config['fping6'] = 'fping6';
$config['fping_options']['retries'] = 3; $config['fping_options']['retries'] = 3;
$config['fping_options']['timeout'] = 500; $config['fping_options']['timeout'] = 500;

4
logs/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

4
rrd/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore