Drupal

From ArchWiki
Revision as of 19:02, 21 December 2006 by The Nerd (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Drupal

This document describes how to set up Drupal (5.0-rc1) with Apache, MySQL or PostgreSQL, PHP, and Postfix! This document assumes that you have some sort of LAMP(Apache, MySQL, PHP) or LAPP(Apache, PostgreSQL, PHP) server already setup.

Installing GD


Drupal likes to have the GD image library installed so lets take care of that first.

  1. Install the package
     pacman -Sy gd
  2. Open the file /etc/php.ini with your editor of choice
    eg. nano /etc/php.ini
  3. Find the line that starts with, ";extension=gd.so" and change it to, "extension=gd.so". (Just remove the preceding ";"). If this line is not present, add it. This line may be in the "Dynamic Extensions" section of the file, or toward the very end of the file.
  4. Restart the Apache web server
    /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

Configure Postfix


  1. Open the file /etc/php.ini with your editor of choice
    eg. nano /etc/php.ini
  2. Find the line that starts with, ;sendmail_path="" and change it to, sendmail_path="/usr/sbin/sendmail -t -i"
  3. Restart the Apache web server
    /etc/rc.d/httpd restart