Error establishing a database connection AWS EC2 WordPress MYSQL

Visits: 18042Error establishing a database connection while using WordPress installed on AWS EC2 Using the Free tier EC2 server on Amazon with an active wordpress server requires a bit of work, namely that you need a script that will restart the mysqld service. However, it really help to add a swap file, not installed by default …

How to Install and use Lsyncd on CentOS 7 / RHEL 7 / Amazon Linux

Visits: 2684To install lsync on Amazon Linux fist add EPEL repositories: sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm also see: http://www.marcburrows.com/using-lsyncd-with-aws/ Allow the Master Server to connect to the slave server without a password On the master server, log in through putty and run the following: ssh-keygen -t rsa You will get asked to enter the file in which …

Can’t delete IAM role because policies are attached · Harder to remove IAM than to create it

Visits: 678I am trying to uninstall a role , policy and profile in AWS command line. I made a script that creates the role, etc but need to make an uninstall script. ~/.local/bin/aws iam create-role –role-name CharmingMachineBashRole –assume-role-policy-document file:///usr/local/sbin/AllowSecGroupCreate.json ~/.local/bin/aws iam attach-role-policy –role-name CharmingMachineBashRole –policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess ~/.local/bin/aws iam create-instance-profile –instance-profile-name CharmingMachineBash-Instance-Profile ~/.local/bin/aws iam add-role-to-instance-profile –role-name …

AWS Cloudformation pass parameters from pull down menu to UserData.

Visits: 8589Declaring the Ref s and Mapping Findinmap in CloudFormation which can be used in userdata on your EC2 server (maybe others too) Almost 20 hours of learning and making mistakes I have been working on making a Multi Region Replicated MongoDB Replica Set with Oneclick installation via AWS Marketplace. I got the script working. …

Stop Ubuntu from running Auto Upgrades at boot – #DEVOPS

Visits: 4449Devops need to automatically install stuff on Ubuntu, however this clashed with the daily ubuntu auto update. The best way to stop autoupgrades is to prevent Ubuntu from download the updated package list Edit /etc/apt/apt.conf.d/20periodic or whatever number it is Change the 1 for Update-Package-Lists to a 0 APT::Periodic::Update-Package-Lists “0”; APT::Periodic::Unattended-Upgrade “1”; See: https://askubuntu.com/questions/9/how-do-i-enable-automatic-updates https://help.ubuntu.com/community/AutomaticSecurityUpdates https://debian-handbook.info/browse/stable/sect.regular-upgrades.html …