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:
parent
fc6386bf5f
commit
163d0b4f88
|
@ -22,10 +22,8 @@ html/plugins/*
|
|||
!html/plugins/Test/
|
||||
includes/custom/*
|
||||
junk
|
||||
logs
|
||||
nbproject
|
||||
patches
|
||||
rrd
|
||||
!/lib/yaml
|
||||
/vendor
|
||||
composer.phar
|
||||
|
|
|
@ -7,7 +7,7 @@ source: Installation/Installation-CentOS-7-Apache.md
|
|||
|
||||
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
|
||||
|
||||
|
@ -23,8 +23,8 @@ source: Installation/Installation-CentOS-7-Apache.md
|
|||
|
||||
#### Configure MySQL
|
||||
|
||||
systemctl restart mariadb
|
||||
mysql -uroot
|
||||
systemctl start mariadb
|
||||
mysql -u root
|
||||
|
||||
> NOTE: Please change the 'password' below to something secure.
|
||||
```sql
|
||||
|
@ -85,7 +85,11 @@ Add the following config, edit `ServerName` as required:
|
|||
|
||||
#### SELinux
|
||||
|
||||
Install the policy tool for SELinux:
|
||||
|
||||
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_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
|
||||
|
||||
|
||||
### Final steps
|
||||
|
||||
Run validate.php as root in the librenms directory:
|
||||
|
|
|
@ -7,7 +7,7 @@ source: Installation/Installation-CentOS-7-Nginx.md
|
|||
|
||||
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
|
||||
|
||||
|
@ -23,8 +23,8 @@ source: Installation/Installation-CentOS-7-Nginx.md
|
|||
|
||||
#### Configure MySQL
|
||||
|
||||
systemctl restart mariadb
|
||||
mysql -uroot
|
||||
systemctl start mariadb
|
||||
mysql -u root
|
||||
|
||||
> NOTE: Please change the 'password' below to something secure.
|
||||
```sql
|
||||
|
@ -119,8 +119,12 @@ Delete the `server` section from `/etc/nginx/nginx.conf`
|
|||
|
||||
#### SELinux
|
||||
|
||||
Install the policy tool for SELinux:
|
||||
|
||||
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_rw_content_t '/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
|
||||
|
||||
|
||||
### Final steps
|
||||
|
||||
Run validate.php as root in the librenms directory:
|
||||
|
|
|
@ -42,7 +42,7 @@ $config['db_socket'] = null;
|
|||
$config['own_hostname'] = 'localhost';
|
||||
|
||||
// Location of executables
|
||||
$config['fping'] = '/usr/bin/fping';
|
||||
$config['fping'] = 'fping';
|
||||
$config['fping6'] = 'fping6';
|
||||
$config['fping_options']['retries'] = 3;
|
||||
$config['fping_options']['timeout'] = 500;
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
Loading…
Reference in New Issue