Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:
- 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
- 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
- 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
- If using SELinux you may also need:
- semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/bootstrap/cache(/.*)?'
- semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/bootstrap/cache(/.*)?'
- restorecon -RFvv /opt/librenms/bootstrap/cache
- semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage(/.*)?'
- semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage(/.*)?'
- restorecon -RFvv /opt/librenms/storage
- semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/sessions(/.*)?'
- semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/sessions(/.*)?'
- restorecon -RFvv /opt/librenms/storage/framework/sessions
- semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/views(/.*)?'
- semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/views(/.*)?'
- restorecon -RFvv /opt/librenms/storage/framework/views
- semanage fcontext -a -t httpd_sys_content_t '/opt/librenms/storage/framework/cache(/.*)?'
- semanage fcontext -a -t httpd_sys_rw_content_t '/opt/librenms/storage/framework/cache(/.*)?'
- restorecon -RFvv /opt/librenms/storage/framework/cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement