mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
docs: Add composer back to the CentOS install docs (#8224)
* Add composer back to the centos install docs This is for CentOS 7, not CentOS 6... * In tree composer requires php 7.2 * Rename socket file to match * Clean up the initial config.php a bit Add clearer releasing info in that config.php Update the manual update instructions
This commit is contained in:
committed by
Neil Lathwood
parent
016455f784
commit
496575ea99
@@ -18,9 +18,13 @@ If you absolutely must update manually without using `./daily.sh` then you can d
|
||||
```bash
|
||||
cd /opt/librenms
|
||||
git pull
|
||||
php includes/sql-schema/update.php
|
||||
composer install --no-dev
|
||||
./build-base.php
|
||||
./validate.php
|
||||
```
|
||||
|
||||
Not using daily.sh means that you will also lose a lot of automatic database clean up, you will need to do this manually.
|
||||
|
||||
## Disabling automatic updates ##
|
||||
LibreNMS by default performs updates on a daily basis. This can be disabled by setting:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ source: Installation/Installation-CentOS-7-Apache.md
|
||||
|
||||
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
|
||||
|
||||
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-process php71w-snmp php71w-xml php71w-zip python-memcached rrdtool
|
||||
yum install composer cronie fping git httpd ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nmap php72w php72w-cli php72w-common php72w-curl php72w-gd php72w-mcrypt php72w-mysql php72w-process php72w-snmp php72w-xml php72w-zip python-memcached rrdtool
|
||||
|
||||
#### Add librenms user
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ source: Installation/Installation-CentOS-7-Nginx.md
|
||||
|
||||
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
|
||||
|
||||
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-process php71w-snmp php71w-xml php71w-zip python-memcached rrdtool
|
||||
yum install composer cronie fping git ImageMagick jwhois mariadb mariadb-server mtr MySQL-python net-snmp net-snmp-utils nginx nmap php72w php72w-cli php72w-common php72w-curl php72w-fpm php72w-gd php72w-mcrypt php72w-mysql php72w-process php72w-snmp php72w-xml php72w-zip python-memcached rrdtool
|
||||
|
||||
#### Add librenms user
|
||||
|
||||
@@ -70,7 +70,7 @@ user = nginx
|
||||
group = apache ; keep group as apache
|
||||
|
||||
;listen = 127.0.0.1:9000
|
||||
listen = /var/run/php-fpm/php7.1-fpm.sock
|
||||
listen = /var/run/php-fpm/php7.2-fpm.sock
|
||||
|
||||
listen.owner = nginx
|
||||
listen.group = nginx
|
||||
@@ -105,7 +105,7 @@ server {
|
||||
location ~ \.php {
|
||||
include fastcgi.conf;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php-fpm/php7.1-fpm.sock;
|
||||
fastcgi_pass unix:/var/run/php-fpm/php7.2-fpm.sock;
|
||||
}
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
|
||||
@@ -366,11 +366,6 @@ $config_file = <<<"EOD"
|
||||
//Please ensure this user is created and has the correct permissions to your install
|
||||
\$config['user'] = 'librenms';
|
||||
|
||||
### Memcached config - We use this to store realtime usage
|
||||
\$config\['memcached'\]\['enable'\] = FALSE;
|
||||
\$config\['memcached'\]\['host'\] = "localhost";
|
||||
\$config\['memcached'\]\['port'\] = 11211;
|
||||
|
||||
### Locations - it is recommended to keep the default
|
||||
#\$config\['install_dir'\] = "$install_dir";
|
||||
|
||||
@@ -394,8 +389,9 @@ $config_file = <<<"EOD"
|
||||
#\$config\['nets'\]\[\] = "172.16.0.0/12";
|
||||
#\$config\['nets'\]\[\] = "192.168.0.0/16";
|
||||
|
||||
# Uncomment the next line to disable daily updates
|
||||
#\$config\['update'\] = 0;
|
||||
# Update configuration
|
||||
#\$config\['update_channel'\] = 'release'; # uncomment to follow the monthly release channel
|
||||
#\$config\['update'\] = 0; # uncomment to completely disable updates
|
||||
EOD;
|
||||
|
||||
if (!file_exists("../config.php")) {
|
||||
|
||||
Reference in New Issue
Block a user