New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CentOS7 install doc is not complete. #1906
Comments
The installation docs are intentionally kept brief to avoid increasing the maintenance burden by replicating information that's already available elsewhere. We include examples for nginx and Apache configuration only for Ubuntu because their configuration is not substantially different under CentOS.
These are not unique to NetBox. The documentation makes no assumptions about the user's environment and we cannot blindly recommend disabling either of these. Following the docs as they currently exist will successfully install NetBox on a stock CentOS 7.4 instance. |
Ok, seems fair. I just assumed it was missing, since there were CentOS instructions all the way up to the last part, therefor I thought I should add the missing pieces. :) |
Use this complete guide to install Netbox on CentOS 7 https://computingforgeeks.com/how-to-install-netbox-on-centos-7-with-apache-and-supervisord/ |
great write-up |
I was able to make some changes so netbox could run safely with selinux in enforcing mode. I choose to change the default port to 8008 to make it easier, you could also use a different policy with the default port of 8000 but I preferred using the httpd policy which has 8008. Allow application to access DB on a remote system: Change the context of files for the default location of the netbox install: Now start the process in this context: |
Issue type
[ ] Feature request
[ ] Bug report
[ x] Documentation
Environment
Description
There's some things missing from the Install documentation regarding CentOS. I have created some notes here to fill in the gaps. This is for CentOS 7.4.1708.
First, I think it would be good to mention in the beginning that Firewalld and SELinux will block access to netbox unless they are configured correctly. I have not bothered with that, but just thought I could add some instructions to turn them off. It could be good to know. If one runs SELinux and FIrewalld actively, I am sure they know how set them up.
Firewalld:
Turn off firewalld:
(stop firewall/iptables)
$ sudo systemctl stop firewalld
(Disable it, so it don't start up after reboot)
$ sudo systemctl disable firewalld
SELinux:
To check if SELinux is running
Above is an example output. To turn it off, edit /etc/selinux/config and change SELINUX=enforcing/permissive to disabled and reboot the server.
nginx
Install nginx on centos
Next you must comment out the default part in nginx cofing.
Lastly for nginx, enable it to start after reboot and start it up now:
Gunicorn (with nginx)
Supervisord (with nginx)
The text was updated successfully, but these errors were encountered: