www.handson.ca www.handson.ca www.handson.ca
 
·  Home  ·  Services  ·  Recycling  ·  Tutorials  ·  Reference  ·  Contact  ·
 
 
 <--Back 
 

Drupal 4.7.6 on Ubuntu 7.10 LAMP Server

Install Drupal

Create a temporary directory

#cd ~/
#mkdir temp
#cd temp
Get Drupal files
#wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-4.7.6.tar.gz
Unpack, Create directories, set permissions, Move Drupal
#tar -xzf ./drupal-4.7.6.tar.gz
#sudo mkdir /var/www/drupal
#sudo mv drupal-4.7.6/* /var/www/drupal
#sudo mv drupal-4.7.6/.htaccess /var/www/drupal
#sudo mkdir /var/www/drupal/files
#sudo chown www-data:www-data /var/www/drupal/files

Configure MySQL

If this is a new installation, you need to set a password for the MySQL administrator account

example:
Administrator Name: root
Administrator Password: rootpassword

#mysql -u root

mysql>SET PASSWORD FOR 'root'@'localhost' = PASSSWORD ('rootpassword');
mysql>\q

Create a new databased called "drupal"
#mysqladmin -u root -p create drupal
Give the computer user called "user", whose password is also "user", rights over the new database
#mysql -u root -p

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE
               DROP,INDEX,ALTER,CREATE TEMPORARY TABLES,
               LOCK TABLES ON drupal.* TO
               'user'@'localhost' IDENTIFIED BY 'user';
mysql>FLUSH PRIVILEGES;
mysql>\q

#mysql -u user -p drupal < /var/www/drupal/database/database.4.1.mysql

Configure PHP

Edit one line in the PHP configuration file
#sudo pico /var/www/drupal/sites/default/settings.php
find and change the following line:
$db.url="mysql://user:user@localhost/drupal";

Hit "ctrl o" to save
Hit "ctrl x" to exit

Restart Apache Server

#sudo /etc/init.d/apache2 restart

Start Using Drupal

From another computer, start up a web browser and enter the IP Address of the web server

Example:

http://192.168.1.150/drupal
Configure Drupal's administrator, log in, begin creating a web site.
 

  
 <--Back