by

EC2 + Ubuntu 12.04 + LAMP 2 Server Setup checklist

My steps:

Install stuff

sudo apt-get update
sudo apt-get upgrade
sudo tasksel install lamp-server
sudo apt-get install subversion phpmyadmin php5-curl
  • Add Include /etc/phpmyadmin/apache.conf to somewhere in your Apache Config files to enable it
  • Use http://strongpasswordgenerator.com/ to generate passwords
  • Uncomment store-plaintext-passwords = no in /home/ubuntu/.subversion/servers so svn stops bugging you about it

Security

Backups

Monitoring

  • AWS – set up CloudWatch to watch Status and CPU usage

Other Tweaks

  • Watchopolis

    does my /etc/cron.d/php5 looks good sir ?

    # Look for and purge old sessions every 30 minutes
    09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null ; -delete

    • adamsullovey

      That looks like the default cron job for PHP5 on Ubuntu 12 to me. I assume it is good enough.