• Home
  • About Me
  • Resume
  • Useful Links
  • Português
  • Contact

EmanuelCosta.com

E-Commerce, SEO/SEM/Online Marketing, Web Development, Usability, WordPress & WooCommerce

  • LinkedIn
  • Twitter
Home » Linux

Renewing letsencrypt on Amazon AWS Linux Issue

Posted on June 13, 2016 Written by EmanWeb

So, today I had to update one of my SSLs on a site I run on Amazon AWS

I entered the command to renew the certificate:
/home/letsencrypt/letsencrypt-auto --config /home/letsencrypt/cli.ini -d mydomain.com -d www.mydomain.com certonly && service httpd reload
and got this error:

Creating virtual environment...
Installing Python packages...
Installation succeeded.
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/bin/letsencrypt", line 7, in
from certbot.main import main
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 11, in
import zope.component
File "/root/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in
from zope.interface import Interface
ImportError: No module named interface

After lots of research I found a Japanese blog with the solution.

Just enter this as sudo on the command prompt:

 unset PYTHON_INSTALL_LAYOUT

Then update letsencrypt:

./letsencrypt-auto -v

And run the command to renew your certificate.

p.s.: This is how my cli.ini looks like:

authenticator = webroot
webroot-path = /var/www/html/
server = https://acme-v01.api.letsencrypt.org/directory
renew-by-default = true
agree-tos = true
email = webmaster@mydomain.com

  • delicious Bookmark on Delicious
  • digg Digg this post
  • facebook Recommend on Facebook
  • linkedin Share on Linkedin
  • reddit share via Reddit
  • stumble Share with Stumblers
  • twitter Tweet about it
  • rss Subscribe to the comments on this post
  • print Print for later
  • email Tell a friend

Filed Under: Linux Tagged With: Amazon AWS, letsencrypt, ssl

Free SSL on Amazon AWS Linux Flavor

Posted on December 16, 2015 Written by EmanWeb

So I am following this great post to install Free SSL from https://letsencrypt.org and here is the list of commands I had to run to setup SSL on Amazon Linux.

sudo su

cd /home

git clone https://github.com/letsencrypt/letsencrypt

cd letsencrypt

For Amazon Linux Flavor:

./bootstrap/centos.sh

./letsencrypt-auto

./letsencrypt-auto certonly --webroot -w /home/username/public_html/ -d yourdomain.com -d www.yourdomain.com

Now, you just go to the folder /etc/letsencrypt/live/yourdomain.com and install the certificate generated there.

Do you need help using Free SSL on your site? Let me know.

  • delicious Bookmark on Delicious
  • digg Digg this post
  • facebook Recommend on Facebook
  • linkedin Share on Linkedin
  • reddit share via Reddit
  • stumble Share with Stumblers
  • twitter Tweet about it
  • rss Subscribe to the comments on this post
  • print Print for later
  • email Tell a friend

Filed Under: Linux Tagged With: aws, https, security, ssl

cPanel on AWS EC2 using Amazon Linux w/ Yours Nameservers

Posted on November 24, 2015 Written by EmanWeb

Today I finally could spin off a server running cPanel on Amazon Web Services. You can find great instructions here: How to Setup cPanel on AWS

and here also very important if you want to run your own nameservers: Amazon EC2 Nameservers on AWS

But if you plan on using Amazon’s own Linux flavor, make sure you  do this two steps before installing cPanel:

  1. Remove dovecot from your yum.conf file excluded list;
  2. Run the following command to install all the required libraries.
yum install xz-compat-libs-5.1.2-8alpha.11.amzn1.x86_64

That will make sure you have the latest required RPM packages to run cPanel on Amazon Linux.

If you don’t run these steps above, you may get this error:

 - ssystem [BEGIN]: /scripts/rdate
open3: exec of /scripts/rdate failed at /home/cPanelInstall/selfgz23309/install line 238.
Removing /root/installer.lock.

or this one:

liblzma.so.0()(64bit) is needed by dovecot-1:2.2.19-1.cp1148.x86_64

Before running the command to install cPanel, make sure your hostname is a public accessible, something like: ec2-IPADDRESS.us-west-2.compute.amazonaws.com

After all that everything runs fine and you just need to finish setting up your cPanel/WHM installation.

11-24-2015 5-59-50 PM

 

Do you run cPanel on AWS? Let me know how does that work for you.

 

Update 1: I had to edit the named.conf file to allow queries since we are running our own nameservers. Make sure you check the line for:

allow-query { any; }; 

Update 2: Once cPanel is running you should really optimize it’s settings for your server. I found this link very informative:

Optimize MySQL & Apache on cPanel/WHM server

Make sure also you follow the firewall/security settings mentioned there.

  • delicious Bookmark on Delicious
  • digg Digg this post
  • facebook Recommend on Facebook
  • linkedin Share on Linkedin
  • reddit share via Reddit
  • stumble Share with Stumblers
  • twitter Tweet about it
  • rss Subscribe to the comments on this post
  • print Print for later
  • email Tell a friend

Filed Under: Linux Tagged With: cpanel, hosting, linux

Ubuntu 14.04 ç ou ć

Posted on July 26, 2015 Written by EmanWeb

I have just installed Ubuntu 14.04 on my laptop and had a hard time figuring  out why the very common cedilla letter in Brazilian Portuguese was not working. Instead this letter was showing up: ć.

After digging online on many different places. This seem to be an old issue that is recurring on every Ubuntu version. The solution for me was use the English (US, alternative international) keyboard and add the following couple lines to my /etc/environment file:
GTK_IM_MODULE=cedilla
QT_IM_MODULE=cedilla

And voilá! Now the very popular Brazilian letter is back normal so you can write: criança, coroação, combinação, importação, adição and hundreds of words with Ç instead of ć

  • delicious Bookmark on Delicious
  • digg Digg this post
  • facebook Recommend on Facebook
  • linkedin Share on Linkedin
  • reddit share via Reddit
  • stumble Share with Stumblers
  • twitter Tweet about it
  • rss Subscribe to the comments on this post
  • print Print for later
  • email Tell a friend

Filed Under: Linux Tagged With: Cedilha, Portuguese, Ubuntu

Find Here

About me

Hello, my name is Emanuel Costa. I build professional websites and help companies grow online. I write this blog to help myself about what I learned and perhaps help other people. I help organize meetups and whenever I can I attend tech events, specially WordCamps. Read more about me. (p.s.: Agora escrevo um blog em Português aqui: emanweb.com.br

Latest WordCamp:

WordCamps I Attended:

I am volunteering at WordCamp Las Vegas 2019″ title=

WordCamp Fortaleza

I'm attending WordCamp San Diego

I am Attending WordCamp Miami 2016


WordCamp US

Categories

  • ActionScript
  • Blogs
  • ColdFusion
  • CSS
  • Experience
  • Flex and Flash
  • Gadgets
  • Google
  • JavaScript
  • Linux
  • MySQL
  • PHP
  • SEO
  • SEO and Internet Marketing
  • SQL Server and T-SQL
  • Uncategorized
  • video
  • Web Development
  • WooCommerce
  • wordcamp
  • WordPress
May 2025
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728293031  
« Dec    

Recent Comments

  • Peter Crouch on How to output a list of IDs in a field as recordsets / Como retornar uma lista de IDs como recordset
  • Simon on cPanel on AWS EC2 using Amazon Linux w/ Yours Nameservers
  • WordPress Developer? Really? - EmanuelCosta.com on Gracie Brazilian Jiu Jitsu and WordPress. What these two have in common?

Follow Me

  • Linkedin
  • Meetup
  • RSS feed
  • @emanweb

Navigation

  • Home
  • About Me
  • Resume
  • Useful Links
  • Português
  • Contact

Need quick tech advice? Pick my brain:

Copyright © 2025 · Focus Pro Theme on Genesis Framework · WordPress · Log in

 

Loading Comments...