Skip to content

Fresh install

Sébastien LUCAS edited this page May 8, 2015 · 53 revisions
  • Initialisation
  • Initialize apt-get database
apt-get update

MYSQL

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-remote-database-to-optimize-site-performance-with-mysql

Open mysql port for a different server http://www.cyberciti.biz/tips/linux-iptables-18-allow-mysql-server-incoming-request.html


[Install LAMP (Apache + Mysql + Php)

// Php my admin (escape data auto config)
apt-get install phpmyadmin

// Install of pecl
apt-get install php-pear

// Install of make (compilator)
apt-get install make

// Install memcache through PECL
pecl install memcache

// Edit php.info 
vim /etc/php5/apache2/php.ini
  • cron
crontab -e
// Drush (pear install) 
pear channel-discover pear.drush.org
pear install drush/drush

If the system don't know about drush make a symlink between it's current location ans /usr/local/bin, it means drush must be a symlink as /usr/local/bin/drush linking to its actual location (home folder, or elsewhere)


Securisation of the server

sudo iptables -I INPUT 5 -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7

Misc

WIKI by Sébastien Lucas CEO & Funder or Bricks

Clone this wiki locally