<--Back
Drupal 4.7.6 on Ubuntu 7.10 LAMP Server
Install Drupal
Create a temporary directory
#cd ~/Get Drupal files
#mkdir temp
#cd temp
#wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-4.7.6.tar.gzUnpack, 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 rootCreate a new databased called "drupal"mysql>SET PASSWORD FOR 'root'@'localhost' = PASSSWORD ('rootpassword');
mysql>\q
#mysqladmin -u root -p create drupalGive the computer user called "user", whose password is also "user", rights over the new database
#mysql -u root -pmysql> 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.phpfind 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/drupalConfigure Drupal's administrator, log in, begin creating a web site.