1. Installation requirements:(http://drupal.org/requirements)
2. Download the latest Drupal Package:
3. Move the extracted Contents to /var/www directory:
4. In the settings/default directory copy the default.settings.php file and rename the copied file into settings.php:
6. Provide web server the permission to modify settings.php by
7. Provide write permission to /sites/default directory by:
8. Create a Database for Drupal.
9. Enable the rewrite module and start the apache server:
10. Open Your browser and start the installation process by typing the following URL in address bar:
and follow these steps here.
Other useful Links:
- Mysql
- Php
- Apache
>>sudo apt-get install php5-mysql apache2 mysql-client mysql-server php5-gd
2. Download the latest Drupal Package:
>wget http://ftp.drupal.org/files/projects/drupal-7.2.tar.gz
Extract the tar file:
>tar -zxvf drupal-7.2.tar.gz
Rename the extracted folder to drupal:
>mv drupal-7.2 drupal
3. Move the extracted Contents to /var/www directory:
ravikumar@ravikumar-desktop:~$ mv drupal /var/www/
ravikumar@ravikumar-desktop:~$ ls /var/www
drupal
4. In the settings/default directory copy the default.settings.php file and rename the copied file into settings.php:
ravikumar@ravikumar-desktop:~$ cd /var/www/drupal/sites/default
ravikumar@ravikumar-desktop:/var/www/drupal/sites/default$ cp default.settings.php settings.php
ravikumar@ravikumar-desktop:/var/www/drupal/sites/default$ ls
default.settings.php settings.php
6. Provide web server the permission to modify settings.php by
ravikumar@ravikumar-desktop:/var/www/drupal/sites/default$ chmod 777 settings.php
Note: After installation of drupal change the settings.php to "chmod 755 settings.php"7. Provide write permission to /sites/default directory by:
ravikumar@ravikumar-desktop:/var/www/drupall/sites$ chmod a+w default
8. Create a Database for Drupal.
ravikumar@ravikumar-desktop:~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.1.54-1ubuntu4 (Ubuntu)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database mydrupal;
Query OK, 1 row affected (0.00 sec)
mysql> use mydrupal;
Database changed
mysql> grant all on mydrupal TO 'root@localhost' identified by 'root';
Query OK, 0 rows affected (0.17 sec)
9. Enable the rewrite module and start the apache server:
ravikumar@ravikumar-desktop:~$ sudo a2enmod rewrite
ravikumar@ravikumar-desktop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
10. Open Your browser and start the installation process by typing the following URL in address bar:
and follow these steps here.
Other useful Links:
"Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"
ReplyDeletecan u help happen when got message like this..
Using "ps" command try to find out "dpkg" is running or not and if it's running use kill and try to do the operation.
ReplyDelete