Ainda sou novo no mundo do Ubuntu e enfrento atualmente o problema com o Apache2, como mostrado na foto abaixo:
Paraoproblemamostradonafoto,nãoconseguiobterapáginadelocalhost"Moodle" como ilustrado aqui
> ● apache2.service - The Apache HTTP Server Loaded: loaded
> (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
> Drop-In: /lib/systemd/system/apache2.service.d
> └─apache2-systemd.conf Active: failed (Result: exit-code) since Fri 2018-02-16 19:09:09 CET; 1 day 5h ago Process:
> 1683 ExecStart=/usr/sbin/apachectl start (code=exited,
> status=1/FAILURE)
>
> Feb 16 19:09:09 Ali-Lenovo-B50-80 apachectl[1683]: (98)Address already
> in use: AH00072: make_sock: could not bind to address [::]:80 Feb 16
> 19:09:09 Ali-Lenovo-B50-80 apachectl[1683]: (98)Address already in
> use: AH00072: make_sock: could not bind to address 0.0.0.0:80 Feb 16
> 19:09:09 Ali-Lenovo-B50-80 apachectl[1683]: no listening sockets
> available, shutting down Feb 16 19:09:09 Ali-Lenovo-B50-80
> apachectl[1683]: AH00015: Unable to open logs Feb 16 19:09:09
> Ali-Lenovo-B50-80 apachectl[1683]: Action 'start' failed. Feb 16
> 19:09:09 Ali-Lenovo-B50-80 apachectl[1683]: The Apache error log may
> have more information. Feb 16 19:09:09 Ali-Lenovo-B50-80 systemd[1]:
> apache2.service: Control process exited, code=exited status=1 Feb 16
> 19:09:09 Ali-Lenovo-B50-80 systemd[1]: Failed to start The Apache HTTP
> Server. Feb 16 19:09:09 Ali-Lenovo-B50-80 systemd[1]: apache2.service:
> Unit entered failed state. Feb 16 19:09:09 Ali-Lenovo-B50-80
> systemd[1]: apache2.service: Failed with result 'exit-code'.