How To Install Ruby on Rails with Passenger on Apache using RVM

Author: , July 31st, 2013

These are the steps I took to get this installed on a t1.micro AWS instance. OPTIONAL: Increase virtual memory for compiling Passenger as per warnings from passenger-install-apache2-module dd if=/dev/zero of=/swap bs=1M count=1024 mkswap /swap swapon /swap BASIC INSTALLATION yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel openssl-devel libxml2-devel libxslt-devel libcurl-devel make bzip2 autoconf automake […]

How to Block wp-login.php Attacks on WordPress Sites

Author: , May 17th, 2013

Introduction WordPress installs globally have been taking quite a hit recently, as nefarious persons continue to attempt brute-force attacks against the WordPress login page. Based on research and experimentation, I have chosen the following approach to provide security with the lowest performance hit: require a web-server-level password for all requests to the wp-login.php file. This […]

How To Install FastCGI On Fedora

Author: , March 27th, 2012

The next two steps will depend on your architecture: For ia-32:

For ia-64:

The module is installed in /etc/httpd/modules. Add the following to /etc/httpd/conf/httpd.conf: LoadModule fastcgi_module modules/mod_fastcgi.so

How To Install CurlFTPFS On Amazon Linux/CentOS

Author: , February 25th, 2012

http://curlftpfs.sourceforge.net/

Where To Find MySQL Sample my.cnf Configuration Files On Amazon Linux

Author: , February 9th, 2012

YMMV… /usr/share/doc/mysql-server-5.1.52

How To Install iostat On Amazon Linux/CentOS Using yum

Author: , February 9th, 2012

yum install sysstat

How To Fix Broken Boot After Yum Update On Amazon Linux

Author: , January 20th, 2012

Stop the instance first…YMMV:

http://aws.amazon.com/amazon-linux-ami/latest-release-notes/

How To Install ec2-consistent-snapshot On AWS/CentOS

Author: , December 30th, 2011

http://alestic.com/2009/09/ec2-consistent-snapshot http://www.thatsgeeky.com/2011/05/ec2-consistent-snapshot-on-amazons-linux-ami/ http://www.thatsgeeky.com/2011/06/rotating-ebs-snapshots-ec2-prune-snapshots/

How To Use Sender-Based Routing In Postfix With AWS SES

Author: , November 6th, 2011

NOTE: This procedure requires Postfix version 2.7 or greater! Create or edit the following three files: /etc/postfix/main.cf

/etc/postfix/master.cf

/etc/postfix/sender_dependent_default_transport_maps yourName@gmail.com aws-email: yourName@yourDomain.com aws-email: Verify the credentials are in place and have the correct ownership and permissions:

Compile the new map and reload postfix.

http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/index.html?IntegratingWithServer.Postfix.html http://www.kutukupret.com/2010/01/02/postfix-bind-sender-domain-to-dedicated-outgoing-ip-address/

How To Use AWS SES With Sendmail In CentOS/Amazon Linux

Author: , October 31st, 2011

Here are the Amazon docs: http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/index.html?IntegratingWithServer.Sendmail.html Edit sendmail.mc and generate a new sendmail.cf

/etc/mail/mailertable .{TAB}aws-email:%0 Replace the {TAB} with an actual tab character, and the last character is a zero. /etc/mail/sendmail.mc Change: DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl To: dnl DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA’)dnl Please note above the space after the leading ‘dnl’ and that there is a trailing ‘dnl’ […]