Control Web Panel
WebPanel => Apache => Topic started by: shiraski 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
-
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
-
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.
-
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
-
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.
-
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
-
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
-
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.