john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Linode basics

1 linode = 1 static ip address = configure DNS + subdomains + mx records etc.

ubu11.10 do not enable auto byobu (too many screens can lock up) = byobu-disable firewall?


cherokee + php + mysql

!/bin/bash

apt-get update apt-get install cherokee php5-gd php5-cgi -y

CREATE USER 'username'@ 'localhost' IDENTIFIED BY 'passwordhere'; 
CREATE DATABASE drupal;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

restore cherokee config/tuning Sources -> PHP Interpreter -> PHP_FCGI_CHILDREN = 3

restore mysql tuning?


postfix?



crontab -e

33 10 * 7 /home/ubuntu/database-backup.sh 35 10 * 7 /home/ubuntu/backup-www.sh


/bin/bash

TIMESTAMP=/bin/date +%Y-%m-%d--%H-%M DESTINATION='/home/ubuntu/BACKUP'

mysqldump -hlocalhost -uroot -pMYSQLPASS -A > $DESTINATION/$TIMESTAMP.sql tar -czvf $DESTINATION/$TIMESTAMP.sql.tar.gz $DESTINATION/$TIMESTAMP.sql rm $DESTINATION/$TIMESTAMP.sql


/bin/bash

TIMESTAMP=/bin/date +%Y-%m-%d--%H-%M DESTINATION='/home/ubuntu/BACKUP'

tar --atime-preserve=system --dereference -cpvzf $DESTINATION/$TIMESTAMP-www.tgz /var/www > $DESTINATION/$TIMESTAMP-www.log cp /etc/cherokee/cherokee.conf $DESTINATION/$TIMESTAMP-cherokee.conf ls -ahl $DESTINATION


  • « Mysql reduced memory configuration
  • javascript focus textbox »

Published

Dec 26, 2011

Category

linux

~123 words

Tags

  • basics 8
  • installs 41
  • linode 1