Setup Drupal 7.20 on Debian Squeeze

February 22nd, 2013

Overview

This is a quick post I wrote while I installed Drupal locally on my own machine. It is meant as a reference only. I do not go into details with any of the commands.

Prerequisites

  • Mysql server and client install or available
  • Apache setup
  • Internet connection
  • PHP GD installed

.

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

Steps

Download Drupal

cd /var/www
sudo wget http://ftp.drupal.org/files/projects/drupal-7.20.tar.gz

Untar

sudo tar -xzvf drupal-7.20.tar.gz

Create settings file and make it writeable

cd /var/www/drupal-7.20/sites/default
sudo cp default.settings.php settings.php
sudo chmod o+w settings.php

Create files folder and make it writeable

cd /var/www/drupal-7.20/sites/default
sudo mkdir files
sudo chown root:www-data files/
sudo sudo chmod g+w files/

Create a database and a user for it.

mysql -uroot -p
mysql>create database drupal
mysql>GRANT ALL PRIVILEGES ON drupal.* TO 'drupal'@'localhost' IDENTIFIED BY 'drupal' WITH GRANT OPTION;
Go to localhost/drupal-7.20 and install.

Categories

IT

Tags