SSL on Ubuntu 16.04 in Help

I am trying to install SSL cert by following this page https://www.vultr.com/docs/setup-letsencrypt-on-linux
All goes well until I try to install the actual certificate, I get the following errors

Error while running apache2ctl graceful.
httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

Any ideas?
Thanks all

Comments

  • @HenrysCat Something is still running on the http ports.

    Either some other service has crept in there, or your apache instance has got "orphened" so it's not seen by the 'apachectl' program as running, even though it actually is (I can't remember how apachectl checks for running process - but I know some scripts rely solely on a pid file and don't check the running processes if the pid file doesn't exist, or points to an incorrect pid)

    Find out what is running and kill it manually with "kill"

    netstat -pl should show you which process/pid is LISTENing on the port. kill it, then retry starting apache
  • Thanks Jamie, I use serverpilot to manage the server, could that be using port 80?
  • @HenrysCat I'm not familiar with serverpilot, but a quick search seems to show that their service manages the webserver directly from their product, so if I'm reading this correctly, then yes, serverpilot is presumably the culprit, but you shouldn't be using your own apache setup at all.

    From their website:
    [quote]
    After you create your ServerPilot account, your first step is to connect a server to ServerPilot. You'll start with a completely fresh Ubuntu server. If you've already installed Apache, Nginx, PHP, or MySQL, then you won't be able to connect your server to ServerPilot.

    After completing a simple and secure form, we'll install the ServerPilot agent on your server. The agent keeps a secure connection open to ServerPilot, does the actual management of your server, and sends back stats and logs.

    You'll then use ServerPilot to create a new app for each website you want to host on your server. For each app you create, ServerPilot will handle all of the server reconfiguration. You never need to do any configuration of Nginx, Apache, MySQL, or PHP. You can use the built-in WordPress installer or SSH/SFTP to upload your site's files to your server.[/quote]
  • If you're on the ServerPilot free plan, installing SSL is tricky. This is one option:
    https://github.com/lesaff/serverpilot-letsencrypt

    If you're on the paid plan, you can install SSL from Serverpilot.
Sign In or Register to comment.

Registration Required

A VULTR.com account is required to use the forum. Click here to sign in.

Quick Links