Netbox on RedHat 8 - Apache installation issues #13114
Unanswered
berkeleycowboy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've successfully installed Apache on my Netbox server as follows:
[weikeld@scdl-ifipam-001 conf]$ sudo dnf install httpd
Updating Subscription Management repositories.
EPEL8 x86_64 42 kB/s | 2.8 kB 00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) 40 kB/s | 2.8 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs) 30 kB/s | 2.1 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 35 kB/s | 2.4 kB 00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 40 kB/s | 2.8 kB 00:00
Package httpd-2.4.37-56.module+el8.8.0+18758+b3a9c8da.6.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[weikeld@scdl-ifipam-001 conf]$ sudo systemctl enable httpd.service
[weikeld@scdl-ifipam-001 conf]$ sudo systemctl start httpd.service
[weikeld@scdl-ifipam-001 conf]$
[weikeld@scdl-ifipam-001 conf]$ httpd -v
Server version: Apache/2.4.37 (Red Hat Enterprise Linux)
Server built: Apr 28 2023 11:22:05
[weikeld@scdl-ifipam-001 conf]$
The netbox documentation indicates the default configuration file should be copied to /etc/apache2/sites-available/ using the following command:
sudo cp /opt/netbox/contrib/apache.conf /etc/apache2/sites-available/netbox.conf
Since my RedHat does not have an appache2 folder I utilized the following instead:
The sites-available folder didn't exist so was crated.
The a2enmod command are not recognized on redhat system. a2enmod and a2dismod commands are for Debian/Ubuntu systems
sudo a2enmod ssl proxy proxy_http headers rewrite
sudo a2ensite netbox
The /etc/httpd/conf/httpd.conf file controls.
I'm assuming something needs to be modified in order to the web server to host properly.
Right now the default apache web server is loaded.
Any help or direction would be appreciated.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions