I used this tutorial as my guide:
And it was working well, until I ran the initial certbot-auto command and received the following error:
python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eIjmRg/cffi You are using pip version 8.0.3, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
I checked the version of pip and updated AMI; still the same error. Above the error listed above was a message that gcc wasn’t installed, so I checked that. When I typed
sudo yum install gcc
I received a message that gcc was already installed. But, simply typing
told me that the command was not found. So I headed to /usr/bin and checked the program listing. gcc48 was there, so I typed:
sudo cp -r gcc48 gcc
(the -r was unnecessary since gcc48 is a file, not a folder). Boom. The script ran without issues.
The only other quirk is that instead of entering the SSL directory data into the ssl.conf file listed in the tutorial, I also typed it into /etc/httpd/conf/httpd.conf under
With these two tweaks, the site loaded correctly with the happy green lock.
TLDR: if gcc isn’t installed but it is, copy gcc48 (or whatever version) and rename it gcc.
If you have any questions, feel free to post in the comments.