0

I've been trying to use Apache2 to put an SSL certificate on my Ubuntu Server 18.04.4 LTS for Nextcloud, and I can't even get a far as to start Apache. I keep getting this error:

Error Picture

I've looked up solutions to this and found about a hundred of them, each of them not working, or I just don't know how to solve it properly.

Help would be much appreciated, I've been suck on this for a few days now. :(

0

there is already something bound to that port, that's why apache complains.

Try this to find out what is using port 80/tcp:

# ss --listening --tcp --numeric --processes

you should get a list of open listening sockets with the local address:port combination and the process that has opened each of them. Find out which one has opened port 80, stop that process and start apache again, it should work.

2
  • The service is "httpd", and I've seen it before. It's affiliated with Nextcloud. How would I stop it, or should I stop it? – Beto Damian Feb 23 '20 at 22:18
  • then you should restart httpd, nextcloud uses it and it's already started – natxo asenjo Feb 24 '20 at 10:02
0

the solution for me is:

  • allocate in this path /snap/nextcloud use unlink to remove all link in this location.

  • use ps -edaf | grep http and kill -9 all httpd processes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.