Apache2 error when starting

hello, i have this error with apache and i still didnt fix
"noxi@panel:~$ sudo systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See “systemctl status apache2.service” and “journalctl -xeu apache2.service” for details.
noxi@panel:~$ systemctl status apache2.service
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-07-20 19:36:38 UTC; 8s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 3575 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 88ms

Jul 20 19:36:38 panel.ncparky.xyz systemd[1]: Starting The Apache HTTP Server…
Jul 20 19:36:38 panel.ncparky.xyz apachectl[3577]: (99)Cannot assign requested address: AH00072: make_sock: could not bind to address 192.168.0.107:8443
Jul 20 19:36:38 panel.ncparky.xyz apachectl[3577]: no listening sockets available, shutting down
Jul 20 19:36:38 panel.ncparky.xyz apachectl[3577]: AH00015: Unable to open logs
Jul 20 19:36:38 panel.ncparky.xyz systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul 20 19:36:38 panel.ncparky.xyz systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jul 20 19:36:38 panel.ncparky.xyz systemd[1]: Failed to start The Apache HTTP Server.
noxi@panel:~$"

Your apache is trying to use port 8443 on ip 192.168.0.107 but it can’t, maybe because port 8443 is already in use or because ip 192.168.0.107 is not assigned to your server.

after i change the ip to the new i get this error "root@panel:~# sudo systemctl status apache2
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-07-21 07:38:41 UTC; 7s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 5485 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 23ms

Jul 21 07:38:40 panel.ncparky.xyz systemd[1]: Starting The Apache HTTP Server…
Jul 21 07:38:41 panel.ncparky.xyz apachectl[5487]: (98)Address already in use: AH00072: make_sock: could not bind to ad>
Jul 21 07:38:41 panel.ncparky.xyz apachectl[5487]: no listening sockets available, shutting down
Jul 21 07:38:41 panel.ncparky.xyz apachectl[5487]: AH00015: Unable to open logs
Jul 21 07:38:41 panel.ncparky.xyz systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul 21 07:38:41 panel.ncparky.xyz systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jul 21 07:38:41 panel.ncparky.xyz systemd[1]: Failed to start The Apache HTTP Server."

What did you change and how?

Lines are cut off and do not show all information. Use this command to show all info:

systemctl status apache2 --no-pager -l

Are the right ips assigned to the users?

 v-list-sys-ips json

If the ips are the right ones and assigned to the right users, maybe you should rebuild all your users:

v-rebuild-users

i have used all your commands and now i see this "root@panel:~# systemctl status apache2 --no-pager -l
+× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-07-21 08:57:06 UTC; 7s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 12755 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 18ms

Jul 21 08:57:06 panel.ncparky.xyz systemd[1]: Starting The Apache HTTP Server…
Jul 21 08:57:06 panel.ncparky.xyz apachectl[12757]: (98)Address already in use: AH00072: make_sock: could not bind to address 10.1.1.2:8443
Jul 21 08:57:06 panel.ncparky.xyz apachectl[12757]: no listening sockets available, shutting down
Jul 21 08:57:06 panel.ncparky.xyz apachectl[12757]: AH00015: Unable to open logs
Jul 21 08:57:06 panel.ncparky.xyz systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Jul 21 08:57:06 panel.ncparky.xyz systemd[1]: apache2.service: Failed with result ‘exit-code’.
Jul 21 08:57:06 panel.ncparky.xyz systemd[1]: Failed to start The Apache HTTP Server.
root@panel:~#"

hello, i fixed it by removing a bad config i had

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.