Advertisement
rlw

Untitled

rlw
May 14th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. Error: bootstrap/cache, storage, storage/framework/sessions, storage/framework/views, storage/framework/cache not writable! Run these commands as root on your LibreNMS server to fix:
  2. chown -R librenms:librenms /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
  3.  
  4. setfacl -R -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
  5.  
  6. setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/storage/framework/sessions /opt/librenms/storage/framework/views /opt/librenms/storage/framework/cache
  7.  
  8. If using SELinux you may also need:
  9. semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/bootstrap/cache(/.*)?'
  10.  
  11. semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/bootstrap/cache(/.*)?'
  12.  
  13. restorecon -RFvv /opt/librenms/bootstrap/cache
  14.  
  15. semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage(/.*)?'
  16.  
  17. semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage(/.*)?'
  18.  
  19. restorecon -RFvv /opt/librenms/storage
  20.  
  21. semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/sessions(/.*)?'
  22.  
  23. semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/sessions(/.*)?'
  24.  
  25. restorecon -RFvv /opt/librenms/storage/framework/sessions
  26.  
  27. semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/views(/.*)?'
  28.  
  29. semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/views(/.*)?'
  30.  
  31. restorecon -RFvv /opt/librenms/storage/framework/views
  32.  
  33. semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/cache(/.*)?'
  34.  
  35. semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/cache(/.*)?'
  36.  
  37. restorecon -RFvv /opt/librenms/storage/framework/cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement