Author Topic: Apache does not start after "dnf install httpd httpd-devel -y"  (Read 21 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache does not start after "dnf install httpd httpd-devel -y"
« on: January 26, 2026, 02:04:28 PM »
Hello,

Because i am in a panic, please excuse my short explanation and haste behavior.

I run this command "dnf install httpd httpd-devel -y" so i can install Maxmind in order to use redirects based on the country of the visitor to my website.

After that command the apache could not start because it was trying to use port 80 which was already being used by nginx.

Long story short, after trying many changes in /usr/local/apache i realized that the httpd.conf that was used was inside /etc/httpd probably from the new installation.

I tried recompiling Apache, nothing.
I tried dnf history undo/rollback, nothing.
I tried reinstall cwp-httpd, nothing.

After changed port to /etc/httpd/httpd.conf, Apache started but was looking inside its own folders which were blank obvioysly!

Do you have any ideas how can i make it work as it used to?

Any help would be greatly appreciated.

Thank you.

Offline
*****
Re: Apache does not start after "dnf install httpd httpd-devel -y"
« Reply #1 on: January 26, 2026, 06:28:43 PM »
You may need to reinstall CWP or hire a sysadmin to save your server.
Note: httpd httpd-devel packages are incompatible with CWP and will overwrite CWP's installed version of Apache, so you should avoid them in the future.

You could see if updating your apache version gets you more on the right track:
https://starburst.help/control-web-panel-cwp/control-web-panel-cwp-admin-tutorials/update-apache-to-2-4-66-in-cwp-on-almalinux-8-9/

Offline
*
Re: Apache does not start after "dnf install httpd httpd-devel -y"
« Reply #2 on: January 26, 2026, 07:35:28 PM »
Hello and thank you for your quick response.

I am happy to report that the problem has been fixed.

Unfortunately, and this really bothers me, i cannot trace the exact steps that made it work.

I uninstalled httpd with yum -y remove httpd, i then changed webserver setting to Apache only.

Then from Apache only to Apache + Nginx in the hope of restoring cwp-httpd but the strangest thing happened.

After that the Apache started but Nginx didn't even seemed to be installed!

I then manually installed it with  yum -y install nginx and it immediately showed up to the dashboard but it wouldn't start.

Somewhere between these steps i though it was wise to reboot the server 2-3 times in case something was just stuck and making my life difficult.

What i do know is that from the beginning the only issue was the httpd i foolishly installed had taken over the cwp-httpd and for some reason, even when i removed it the cwp-httpd would not seem to reinstall properly.

Anyway, it is working now so i'm happy about it.

The only thing that's leaving a sour taste is the fact that i cannot reproduce the steps so i can help others facing the same or similar issue with me.

Once again thank you.

p.s. And one more thing that's off topic, since it all happened because i was trying to install mod_maxminddb does anyone know a safe way to do so?

Offline
***
Re: Apache does not start after "dnf install httpd httpd-devel -y"
« Reply #3 on: January 26, 2026, 09:58:36 PM »
CWP builds httpd from sources. Therefore, when you install some apache related packages it installs all required dependencies from repos even if you have apache/httpd. Just because the binary package manager DNF/YUM knows nothing about apache/httpd installed from sources. To void this you need to compile all extra apache/httpd modules from sources too using the apache source files.

Offline
*****
I'm curious if you tried to update Apache via Starburst's guide -- curious to know if it would have rectified things in your situation.