mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Split install steps into git clone and composer install (#10249)
* Split install steps into git clone and composer install This gives the admin a little more knowledge about how to maintain the system, showing them composer_wrapper.php and su - librenms They will get errors if composer_wrapper doesn't work because of a proxy or no internet connection We lose stats on packagist.org (https://packagist.org/packages/librenms/librenms/stats) If we wanted to keep stats, we could use: ``` COMPOSER_ALLOW_SUPERUSER=1 composer create-project --no-dev --no-install --keep-vcs librenms/librenms librenms dev-master ``` not sure that is worth it. * fix composer_wrapper.php path
This commit is contained in:
@@ -14,7 +14,7 @@ Possible options:
|
||||
|
||||
### Set up your development git clone
|
||||
1. Follow the [documentation on using git](Using-Git.md)
|
||||
2. Install development dependencies `./composer_wrapper.php install`
|
||||
2. Install development dependencies `./scripts/composer_wrapper.php install`
|
||||
3. Set variables in .env, including database settings. Which could be a local or remote MySQL server including your production DB.
|
||||
```dotenv
|
||||
APP_ENV=local
|
||||
|
||||
@@ -17,10 +17,23 @@ path: blob/master/doc/
|
||||
useradd librenms -d /opt/librenms -M -r
|
||||
usermod -a -G librenms apache
|
||||
|
||||
#### Install LibreNMS
|
||||
#### Download LibreNMS
|
||||
|
||||
cd /opt
|
||||
composer create-project --no-dev --keep-vcs librenms/librenms librenms dev-master
|
||||
git clone https://github.com/librenms/librenms.git
|
||||
|
||||
#### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 770 /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
|
||||
#### Install PHP dependencies
|
||||
|
||||
su - librenms
|
||||
./scripts/composer_wrapper.php install --no-dev
|
||||
exit
|
||||
|
||||
## DB Server ##
|
||||
|
||||
@@ -164,12 +177,6 @@ LibreNMS keeps logs in `/opt/librenms/logs`. Over time these can become large an
|
||||
|
||||
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms
|
||||
|
||||
### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
|
||||
## Web installer ##
|
||||
|
||||
Now head to the web installer and follow the on-screen instructions.
|
||||
|
||||
@@ -20,7 +20,21 @@ path: blob/master/doc/
|
||||
#### Download LibreNMS
|
||||
|
||||
cd /opt
|
||||
composer create-project --no-dev --keep-vcs librenms/librenms librenms dev-master
|
||||
git clone https://github.com/librenms/librenms.git
|
||||
|
||||
#### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 770 /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
chgrp apache /var/lib/php/session/
|
||||
|
||||
#### Install PHP dependencies
|
||||
|
||||
su - librenms
|
||||
./scripts/composer_wrapper.php install --no-dev
|
||||
exit
|
||||
|
||||
## DB Server ##
|
||||
|
||||
@@ -194,13 +208,6 @@ LibreNMS keeps logs in `/opt/librenms/logs`. Over time these can become large an
|
||||
|
||||
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms
|
||||
|
||||
### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
chgrp apache /var/lib/php/session/
|
||||
|
||||
## Web installer ##
|
||||
|
||||
Now head to the web installer and follow the on-screen instructions.
|
||||
|
||||
@@ -15,11 +15,23 @@ path: blob/master/doc/
|
||||
useradd librenms -d /opt/librenms -M -r
|
||||
usermod -a -G librenms www-data
|
||||
|
||||
#### Install LibreNMS
|
||||
#### Download LibreNMS
|
||||
|
||||
cd /opt
|
||||
composer create-project --no-dev --keep-vcs librenms/librenms librenms dev-master
|
||||
git clone https://github.com/librenms/librenms.git
|
||||
|
||||
#### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 770 /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
|
||||
#### Install PHP dependencies
|
||||
|
||||
su - librenms
|
||||
./scripts/composer_wrapper.php install --no-dev
|
||||
exit
|
||||
|
||||
## DB Server ##
|
||||
|
||||
@@ -109,11 +121,6 @@ LibreNMS keeps logs in `/opt/librenms/logs`. Over time these can become large an
|
||||
|
||||
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms
|
||||
|
||||
### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
|
||||
## Web installer ##
|
||||
|
||||
|
||||
@@ -15,10 +15,23 @@ path: blob/master/doc/
|
||||
useradd librenms -d /opt/librenms -M -r
|
||||
usermod -a -G librenms www-data
|
||||
|
||||
#### Install LibreNMS
|
||||
#### Download LibreNMS
|
||||
|
||||
cd /opt
|
||||
composer create-project --no-dev --keep-vcs librenms/librenms librenms dev-master
|
||||
git clone https://github.com/librenms/librenms.git
|
||||
|
||||
#### Set permissions
|
||||
|
||||
chown -R librenms:librenms /opt/librenms
|
||||
chmod 770 /opt/librenms
|
||||
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
|
||||
|
||||
#### Install PHP dependencies
|
||||
|
||||
su - librenms
|
||||
./scripts/composer_wrapper.php install --no-dev
|
||||
exit
|
||||
|
||||
## DB Server ##
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ If you want to install manually then we have some documentation which should mak
|
||||
- [RHEL / CentOS 7 Nginx](http://docs.librenms.org/Installation/Installation-CentOS-7-Nginx/)
|
||||
|
||||
### Old Install Docs
|
||||
These install docs are longer updated and may result in an unsuccessful install.
|
||||
These install docs are no longer updated and may result in an unsuccessful install.
|
||||
|
||||
- [Ubuntu 16.04 Apache](http://docs.librenms.org/Installation/Installation-Ubuntu-1604-Apache/)
|
||||
- [Ubuntu 16.04 Nginx](http://docs.librenms.org/Installation/Installation-Ubuntu-1604-Nginx/)
|
||||
|
||||
Reference in New Issue
Block a user