I get a problem in 18.04.I want to configure the SSL for my website, so I edit the profile in etc/apache2/ports.conf and add the line like Listen 443, but when I do service apache2 restart the apahce service can't be restarted but it just work fine in 16.04 like that.Then I delete the line Listen 443 and the Apache service works again..
It says:Job for apache2.service failed because the control process exited with error code.See "systemctl status apache2.service" and "journalctl -xe" for details.
journalctl -xe:
ubuntu apachectl[2867]: AH00526: Syntax error on line 8 of /etc/apache2/ports.conf:
ubuntu apachectl[2867]: Cannot define multiple Listeners on the same IP:port
ubuntu apachectl[2867]: Action 'start' failed.
ubuntu apachectl[2867]: The Apache error log may have more information.
ubuntu systemd[1]: apache2.service: Control process exited, code=exited status=1
ubuntu systemd[1]: apache2.service: Failed with result 'exit-code'.
ubuntu systemd[1]: Failed to start The Apache HTTP Server.
The line 8 is just what I add..
It dose work in 16.04 if I do the same thing, I want to know is anything changed in 18.04?