1 / 9

Installazione di Drupal su Linux (sistemista)

Installazione di Drupal su Linux (sistemista) . Installazione step-by-step e note. Scenari. Installazione in locale Installazione tramite (S)FTP e terminale. Download. Il pacchetto Sapienza viene distribuito in un TAR GZ Locale: decompressione in /srv/www/htdocs

willow
Télécharger la présentation

Installazione di Drupal su Linux (sistemista)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Installazione di Drupal su Linux (sistemista) Installazione step-by-step e note.

  2. Scenari • Installazione in locale • Installazione tramite (S)FTP e terminale

  3. Download • Il pacchetto Sapienza viene distribuito in un TAR GZ • Locale: decompressione in /srv/www/htdocs • Remoto: decompressione in locale e upload in /srv/www/htdocs. Caveat: attenzione ai permessi.

  4. Creazione database • shell> mysql [–h host] –u root –p • CREATE USER ’drupaldb'@'localhost' IDENTIFIED BY 'mypass'; • mysql> CREATE DATABASE drupalsapienzat • GRANT ALL ON drupalsapienzat TO ’drupaldb'@'localhost';

  5. Popolare il database • shell> mysql [–h host] –u drupaldb –p • mysql> use drupalsapienzat; • mysql> source < dbcontent.sql

  6. Modificare settings.php • Il file si trova in /sites/default/settings.php 'database' => '<database sito di facolta>', 'username' => '<username accesso al db>', 'password' => '<password accesso al db>', 'host' => '<host del db>', 'port' => '<porta dell"host del db>', 'database' => 'drupalsapienzat', 'username' => 'drupaldb', 'password' => 'mypass', 'host' => 'localhost', 'port' => '', $base_url = 'http://www.i3s.uniroma1.it'; // NO trailingslash! Nella configurazione a server separati va specificato l’IP del server MySql Per la porta di default può essere lasciato vuoto

  7. Creare .htaccess RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] Aggiungere il path dell’eventuale percorso dalla radice

  8. Sistemare i permessi • Assumendo che l’utente Unix proprietario dell’installazione si chiami ‘drupalsap’, questo deve essere impostato come proprietario sia delle directory che dei file, mentre il gruppo va impostato su ‘www-data’ (Apache) • Vanno dati pieni permessi a drupalsap e solo permessi di lettura e di esecuzione (per le directory) a www-data

  9. Sistemare i permessi /2 Impostazioni corrette: drwxrwx--- 7 www-datadrupalsap 4096 2008-01-18 11:02 files/ drwxr-x--- 32 drupalsap www-data 4096 2008-01-18 11:48 modules/ -rw-r----- 1 drupalsap www-data 873 2007-11-13 15:35 index.php Si realizzano con: [root@localhost]cd /path_to_drupal_installation [root@localhost]chown –R drupalsap:www-data . [root@localhost]find . -type d -exec chmod u=rwx,g=rx,o= {} \; [root@localhost]find . -type f -exec chmod u=rw,g=r,o= {} \;

More Related