Skip to main content

Installing Drupal7.2 in ubuntu 11.04

1. Installation requirements:(http://drupal.org/requirements)
  •  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:

Comments

  1. "Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"

    can u help happen when got message like this..

    ReplyDelete
  2. 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

Post a Comment

Popular posts from this blog

Android Studio Ninja Tip: Custom try/catch code template

As an Android Studio user, you should be familiar with the “ surround-with try-catch” functionality. Surround with try-catch When you use Ctrl+Alt+T (Linux) / Cmd+Alt+T (Mac) shortcut, the built-in try-catch generator auto generates a call to the printStackTrace() method of class Exception in the catch block. After this, we manually add some code to log the exception. e.g., Log.e(TAG, “Oops! something gone wrong”, e); As a power user, you may have used some or all of the following built-in Live templates: Live Templates You can save yourself the pain of these 5-keystrokes or repetitive typing or copy pasting the code by becoming a Ninja who uses a custom built-in try-catch template. Steps for customization Step-1 : Go to Android Studio Preferences | Editor | File and Code Templates Step-2:  Select Code | Catch Statement Body Step-3:  Replace the existing template from: ${EXCEPTION}.printStackTrace(); with: Log.e(getClass().getSimpleName(),...

Android : Sharing code and resources between UI and unit tests

As an Android developer you are already familiar with writing Unit and UI tests. This post is about "How to share the code and resources between your UI and unit tests?". I'd used "Appointments List" as an example scenario for this post. Existing Setup For UI testing, I'd have list of appointments API response in JSON format as "appointments.json" in res directory. The .json file is is converted to AppointmentsListResponse using JsonParser. androidTest/java/com/example/AppointmentScreenTest.java AppointmentsListResponse getFakeAppointmentsResponse() { InputStream in = getInstrumentation ().getContext() .getResources() .openRawResource(com.example.android.internal.test.R.raw.appointments); AppointmentsListResponse fakeResponse = new JsonParser(in).parseTo(AppointmentsListResponse. class ); } androidTest/ java/ com/example/JsonParser.java public class JsonParser String mStringToParse; private static Gson mGso...

How to enable Scrolling in Opensuse11.4 ?

      I have recently installed Opensuse 11.4 KDE in Dell Inspiron N5010, the problem with it is Opensuse cannot support scrolling. Step 1  To make Scroll button Work install GSynaptics for OpenSuse.  GSynaptics is a GUI configuration tool for the Synaptics touchpad  driver of the X server. ravi@linux-2ezc:~>sudo zypper in gsyanptics Step 2         Edit the xorg.conf ravi@linux-2ezc:~> kdesu kwrite /etc/X11/xorg.conf.d/50-synaptics.conf Section "InputDevice" Driver "synaptics" Identifier "TouchPad" Option "SendCoreEvents" Option "Protocol" "auto-dev" Option "SHMConfig" "on" EndSection Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "TapButton1" "...