User Tools

Site Tools


doc:appunti:linux:sa:drupal7

This is an old revision of the document!


Drupal 7.0

Installazione

Creazione database

CREATE USER "drupal_test" PASSWORD 'SuperSecret';
CREATE DATABASE "drupal_test" OWNER drupal_test;

Installazione Drupal

cd /var/www
tar zxvf /usr/local/download/druapl_7.0/drupal-7.0.tar.gz
mv drupal-7.0 drupal.rigacci.org
chown -R root.drupal drupal.rigacci.org
chmod -R g+w drupal.rigacci.org
cd drupal.rigacci.org
chmod a+w sites/default
cp sites/default/default.settings.php sites/default/settings.php
chmod 666 sites/default/settings.php

La directory sites/default/files (scrivibile da Apache) verrà creata dalla procedura di setup.

Al termine del setup bisogna mettere in sicurezza la directory e il file di configurazione, vedi più avanti.

Configurazione

Puntare il browser su http://drupal.rigacci.org/.

Durante l'installazione viene chiesta la lingua. Come suggerito è possibile in quel momento scaricare la traduzione preferita da localize.drupal.org, copiare il relativo file in profiles/standard/translations/ e ricaricare l'elenco delle traduzioni disponibili prima di procedere.

Select an installation profile
Standard

Site information
Site name: rigacci.org :: Geographic Information Systems :: Web
Site e-mail address: info@rigacci.org

Site maintenance account
Username: Admin
E-mail address: info@rigacci.org
Password: SuperSecret

Server settings
Default country: Italy
Default time zone: Europe/Rome

Togliere i permessi di scrittura a sites/default/ e al file sites/default/settings.php:

chmod 664 sites/default/settings.php
chmod 775 sites/default

Aggiunto il cronjob /etc/cron.d/drupal:

09 * * * *    root    /usr/bin/wget -O - -q -t 1 http://drupal.rigacci.org/cron.php

Attivazione moduli e configurazione per il multilingual

Home » Administration » Modules

  • Core
    • Content translation
    • Locale
    • PHP filter

Home » Administration » Configuration » Regional and language

  • French
  • Italia
  • Portuguese, Portugal (edit: Path prefix: “pt” invece di pt-pt)

Home » Administration » Configuration » Languages » Detection and selection

  • Determine the language from the URL
    • Part of the URL that determines language: Path prefix
  • Follow the user's language preference
  • Determine the language from the browser's language settings

Home » Administration » Structure » Content types

Impostare la traducibilità di Basic page e Article cliccando su edit:

  • Publishing options
    • Multilingual support
      • Enabled, with translation
doc/appunti/linux/sa/drupal7.1308922918.txt.gz · Last modified: 2011/06/24 15:41 by niccolo