Drupal (Italiano)

From ArchWiki
Revision as of 15:40, 20 September 2008 by Sacarde (talk | contribs) (Installing GD)
Jump to: navigation, search

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Drupal (Italiano)#)


Questo documento descrive come impostare Drupal (5.0-rc1) con Apache, MySQL o PostgreSQL, PHP, e Postfix! Questo documento presuppone che si abbiano server già impostati quali LAMP(Apache, MySQL, PHP) o LAPP(Apache, PostgreSQL, PHP).

Installing GD

Drupal preferisce avere installata la libreria "GD image" assicurarsi perciò di averla prima di continuare.

  1. Installare il pacchetto
     pacman -Sy gd
  2. Aprire il file /etc/php.ini col proprio editor prescelto
    es. nano /etc/php.ini
  3. Cercare la riga che inizia con, ";extension=gd.so" e cambiarla in, "extension=gd.so". (Rimuovere solo il primo ";"). Se la riga non fosse presente, aggiungerla. Questa riga può essere nella sezione "Dynamic Extensions" di quel file, o verso la fine del file.
  4. Riavviare il server web Apache
    /etc/rc.d/httpd restart

Install Postfix

Postfix is necessary for sending e-mails from drupal. These are useful for account varification, password recovery, etc.

  1. Install Postfix
     pacman -Sy postfix 
  2. Configure Postfix as needed
     nano /etc/postfix/main.cf 
    All that you should have to do is change the hostnames under "Internet Host and Domain Names"
     hostname = hostname1 
     hostname = hostname2
  3. Send a test e-mail to yourself
     mail myusername@localhost 
    (Enter a subject, some words in the body, then press ctrl+d to exit and send the letter) Wait 10 seconds, and then type mail to check your mail. If you've gotten it, excellent.
  4. Make sure Port 25 is fowarded if you have a router so that mails can be sent to the internet at large
  5. Open the file /etc/php.ini with your editor of choice
    eg. nano /etc/php.ini
  6. Find the line that starts with, ;sendmail_path="" and change it to, sendmail_path="/usr/sbin/sendmail -t -i"
  7. Restart the Apache web server
    /etc/rc.d/httpd restart

Install and Setup Drupal

As of the latest 5.0 release, Drupal has a new install system.

  1. Download the latest package from http://drupal.org and extract it.
  2. Move the folders to your /home/httpd/html/ folder.
  3. Open a web browser, and navigate to "localhost"
  4. Follow the instructions on the pages, and drupal should set iself up and bring you to the login!


Drupal asks you to run cron jobs hourly. While I haven't looked into them to see what they do, it is possible to run the job manually via the administrator panel. If you feel so inclined, copy the proper script from the "scripts" folder into "/etc/cron.hourly" and make it executable.