Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Job for apache2.service failed because the control process exited with error code.

392 views
Skip to first unread message

William Torrez Corea

unread,
Sep 28, 2021, 11:40:04 PM9/28/21
to
How to fix this error?

systemctl status apache2.service
apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Tue 2021-09-28 21:26:24 CST; 20s ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 13245 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAIL

sudo service apache2 status
sep 28 21:26:24 systemd[1]: Starting The Apache HTTP Server...
sep 28 21:26:24 apachectl[13245]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
sep 28 21:26:24 apachectl[13245]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:
sep 28 21:26:24 apachectl[13245]: no listening sockets available, shutting down
sep 28 21:26:24 apachectl[13245]: AH00015: Unable to open logs
sep 28 21:26:24 apachectl[13245]: Action 'start' failed.
sep 28 21:26:24 apachectl[13245]: The Apache error log may have more information.
sep 28 21:26:24 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
sep 28 21:26:24 systemd[1]: apache2.service: Failed with result 'exit-code'.
sep 28 21:26:24 systemd[1]: Failed to start The Apache HTTP Server.

--
With kindest regards, William.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

Sven Hartge

unread,
Sep 29, 2021, 2:30:04 AM9/29/21
to
William Torrez Corea <willi...@gmail.com> wrote:

> *How to fix this error?*

> sep 28 21:26:24 apachectl[13245]: (98)Address already in use: AH00072:
> make_sock: could not bind to address [::]:80
> sep 28 21:26:24 apachectl[13245]: (98)Address already in use: AH00072:
> make_sock: could not bind to address 0.0.0.0:

Something else is already listening on the IP (here the wildcard IP) and
the port apache2 wants to bind to. Find out what this is (using ss or
netstat) and switch it to a different port or get rid if it.

Grüße,
Sven.

--
Sigmentation fault. Core dumped.

tuxif...@posteo.de

unread,
Sep 29, 2021, 10:00:06 AM9/29/21
to
Hey,

Have you stopped and disabled other webservers like nginx or lighttpd first?

Tuxifan
signature.asc

William Torrez Corea

unread,
Sep 29, 2021, 10:30:05 PM9/29/21
to
Ready, i stopped lighttpd

sudo /etc/init.d/lighttpd stop
[ ok ] Stopping lighttpd (via systemctl): lighttpd.service.

Actually APACHE is active (running)

sudo service apache2 status
● apache2.service - The Apache HTTP Server

   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset:
   Active: active (running) since Wed 2021-09-29 19:29:22 CST; 7s ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 11542 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCC
 Main PID: 11546 (apache2)
    Tasks: 55 (limit: 4915)
   Memory: 17.7M
   CGroup: /system.slice/apache2.service
           ├─11546 /usr/sbin/apache2 -k start
           ├─11547 /usr/sbin/apache2 -k start
           └─11548 /usr/sbin/apache2 -k start

sep 29 19:29:22 systemd[1]: Starting The Apache HTTP Server..
sep 29 19:29:22 apachectl[11542]: AH00558: apache2: Could not
sep 29 19:29:22 systemd[1]: Started The Apache HTTP Server.

I don't knew that one can't have two services running.

On Wed, Sep 29, 2021 at 7:54 AM <tuxif...@posteo.de> wrote:
Hey,

Have you stopped and disabled other webservers like nginx or lighttpd first?

Tuxifan


Greg Wooledge

unread,
Sep 29, 2021, 10:40:04 PM9/29/21
to
On Wed, Sep 29, 2021 at 08:27:31PM -0600, William Torrez Corea wrote:
> Ready, i stopped lighttpd

> Actually APACHE is active (running)

> I don't knew that one can't have two services running.

Well, the only issue here is that they both want to bind to the same
port. If you change one of them to bind to a different port, or if you
have each of them bind to the same port on a different network
interface, then they can coexist just fine.

But ... for most people, one web server at a time should be plenty.
Pick the one you actually want to use, and remove the other one.
Unless you've got a specific reason to run both of them, and you
configure them for it.

William Torrez Corea

unread,
Sep 30, 2021, 3:50:06 AM9/30/21
to
I trying install moodle in my laptop. I need a Web Server but i think that two Service running is not necessary.

On Wed, Sep 29, 2021 at 8:31 PM Greg Wooledge <gr...@wooledge.org> wrote:
Well, the only issue here is that they both want to bind to the same
port.  If you change one of them to bind to a different port, or if you
have each of them bind to the same port on a different network
interface, then they can coexist just fine.

But ... for most people, one web server at a time should be plenty.
Pick the one you actually want to use, and remove the other one.
Unless you've got a specific reason to run both of them, and you
configure them for it.

 
0 new messages