New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Apache won't start after select web server nginx-varnish-apache

Started by shiraski, November 08, 2024, 08:11:17 AM

Previous topic - Next topic

shiraski

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

shiraski

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

cyberspace

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.

shiraski

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

cyberspace

Quote from: shiraski on November 08, 2024, 04:37:14 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.

venty

Quote from: cyberspace 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.

Hi,

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

Thanks in advance!

BR
Venty

shiraski

Now that i solved with port change apache
but after that i create new domain but that domain not point to home/pblic html folder
so i have multiple domain then how i can solve this issue

cyberspace

CWP points the main domain name of the account to public_html by defauly. When the account is created and you log into the user level CWP to add the domain name, CWP asks you what folder must be used as the home folder (document root) of the new domain. In case you want to set public_html as the document root of the new domain then specify "public_html" as the folder.