Skip to content

Fresh install

Sébastien LUCAS edited this page Apr 26, 2015 · 53 revisions
  • Initialisation

  • Change root PAssword

passwd root
  • Initialize apt-get database
apt-get update
  • lamp stack
// Lamp    
sudo apt-get install apache2 php5 mysql-server libapache2-mod-php5 php5-mysql

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

// Error when connecting 
// The mcrypt extension is missing. Please check your PHP configuration.

sudo apt-get install php5-mcrypt
sudo /etc/init.d/apache2 restart

Activation of mod_rewrite
http://www.apache-mod-rewrite.fr/verification-installation-mod-rewrite

ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load
service apache2 restart

Install Curl (facebook module drupal)

apt-get install php5-curl
/etc/init.d/apache2 restart
  • common used executable
// Git version manager
apt-get install git 

// Vim command line text editor
apt-get install vim 
apt-get install smartmontools
// 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)

WIKI by Sébastien Lucas CEO & Funder or Bricks

Clone this wiki locally