• 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

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

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...