Raspberry Pi – Install a CMS – Drupal version 7.22

I have already published a set of tickets on the CMS (WordPress, Joomla). Tonight one of more with Drupal.


I chose to install the CMS with Nginx and use SQLite as database because lighter than a MySQL.

  1. Install the different packages

    apt - get install –y nginx php5-fpm sqlite php5-sqlite php5-gd
  2. Download Drupal 7.22 and unpack the archive
    mkdir/var/www cd/var/www wget http://FTP.Drupal.org/files/projects/Drupal-7.22.tar.gz tar zxvf drupal - 7.22.tar.gz mv - 7.22 drupal drupal chown-r www - data:www - data drupal
  3. Configure the web server via a file/etc/nginx/sites-available/drupal
    server {
     listen 8080;
     index index.html index.htm index.php;
     server_name localhost;
     location / {
     try_files $uri $uri / index.html;
    location ~ .php$ {
     fastcgi_split_path_info ^(.+\.php)(/.+)$;
     fastcgi_pass unix:/var/run/PHP5-fpm.sock;
     fastcgi_index index.php;
     include fastcgi_params;
  4. Enable the site
  5. Download the translation of Drupal in French
    CD/var/www/drupal/profiles/standard/translations wget http://FTP.Drupal.org/files/translations/7.x/Drupal/drupal-7.0-Alpha1.fr.Po
  6. You can now go to the ip of your site with the port defined in the configuration file
  7. You can follow the instructions that appear on the screen. Nothing complicated. I chose the standard version and the French language.
    As I have installed that SQLite, Drupal will select it by default. The database is located in the directory


    Installation de Drupal et de ses modules

    Installation of Drupal and its modules

  8. The site settings configuration step :
  9. Once the installation is complete, Drupal will send you on your site :

Now that your site is installed, You can navigate, create articles, Configure, add extensions, etc.

Rated performance, on my test Raspberry (256MB) the reactivity is relatively correct (It is not more an arrow). On a 512 MB and with the overclock it will increase without worries.

Have fun.

You may also like...