Author Topic: Apache won't start after select web server nginx-varnish-apache  (Read 74 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apache won't start after select web server nginx-varnish-apache
« on: November 08, 2024, 08:11:17 AM »
Dear members
I install fresh cwp with alamala Linux 9
then change server setup to nginx-varnish-apache and phpfpm
but after that httppd apache not run
if i try manual there showing error

Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.

I think port issue please help me to solve this issue

Offline
*
Re: Apache won't start after select web server nginx-varnish-apache
« Reply #1 on: November 08, 2024, 09:20:08 AM »
Issue solved with

edit mod_security.conf
nano /usr/local/apache/conf.d/mod_security.conf

LoadFile /usr/lib64/liblua-5.4.so
Edit this line to like this

Offline
**
Re: Apache won't start after select web server nginx-varnish-apache
« Reply #2 on: November 08, 2024, 09:59:15 AM »
This is well known mod_security problem. It was solved numerous times:
https://forum.centos-webpanel.com/centos-9-problems/apache-wont-restart-after-enabling-mod_security/msg48744/

Guys, use "search" at this forum. Don't need to post the same problem-solution again and again.

Offline
*
Re: Apache won't start after select web server nginx-varnish-apache
« Reply #3 on: November 08, 2024, 04:37:14 PM »
No actually i enable nginx-varnish-apache after that mode security is remove then also apache not start

when i try i get this error
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

Offline
**
Re: Apache won't start after select web server nginx-varnish-apache
« Reply #4 on: November 08, 2024, 06:37:03 PM »
when i try i get this error
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

The above errors say the port 80 is used already by some service NGINX or HTTP and can't be used by another service. Stop NGINX, Apache/HTTPD and then start services in the following order (Nginx,Apache) manually. If you get the error "could not bind to address 0.0.0.0:80" when you start Apache then check the Apache's config files to identify why apache tries to listed the port 80, update the port (replace :80 with :8181) and then try to start Apache again.

Offline
***
Re: Apache won't start after select web server nginx-varnish-apache
« Reply #5 on: November 09, 2024, 08:35:01 PM »
This is well known mod_security problem. It was solved numerous times:
https://forum.centos-webpanel.com/centos-9-problems/apache-wont-restart-after-enabling-mod_security/msg48744/

Guys, use "search" at this forum. Don't need to post the same problem-solution again and again.

Hi,

the problem occurred with Alma Linux servers and still exists...

Thanks in advance!

BR
Venty