I had to do a little digging, but setting up SSL on your server from Slicehost after launching it with the Deprec gem is not so bad. The issues caused by deprec that make these instructions for setting up SSL on Ubuntu Feisty not work are:

  1. Deprec install Apache2 to a non-standard location. Which means file locations are all mixed up.
  2. Deprec does not install the a2enmod method for Apache. This causes an error ("a2enmod not found") when it comes time to enable SSL in the Apache config files.

No big deal, we can handle this. First step is to SSH into your slice and run the command

sudo apt-get install apache2.2-common

Now you should have a2enmod at your disposal. Follow all the instruction from the SliceHost wiki for setting up SSL on Ubuntu Feisty with Apache, but with three caveats:

  1. replace all references to
    /etc/apache2
    with
    /usr/local/apache2
  2. to restart Apache server, run
    sudo /etc/init.d/httpd restart
    instead of
    sudo /etc/init.d/apache2 force-reload
    Optionally, you may also run this from your home computer instead
    cap apache_restart
  3. you have no ports.conf, so add port 443 to your httpd.conf
    Listen 80
    Listen 443

The rest of SliceHost's excellent tutorial with these minor tweaks should have you up and running in no time.

1 Response to “Setup SSL on your Slice after Launching with Deprec - "a2enmod not found"”

  1. phil Says:
    thanks for this. works perfectly.

Sorry, comments are closed for this article.