drupal

How to install Drupal 7 on ubuntu

7

Professional budget Web hosting starts from $2.00. Cpanel -Control Panel,Softaculous -Auto Script Installer.PHP and Mysql.RVSkin

To install Drupal 7 on your localhost, you must setup apache and mysql first. We have already posted a tutorial on How to install and configure Apache,PHP,MySql and phpMyadmin on ubuntu.Please read first.

1.Download Drupal 7
Go to Drupal website
and download the latest Drupal 7 version in zip format on your desktop and extract. Now you will get drupal-7.0 folder. just rename that folder to drupal
2.Copy Drupal to /var/www folder .

To do this

Method 1:
Go to Application -> Accessories -> Terminal. And type the below code in terminal and hit enter.

gksudo nautilus

Type your ubuntu password if needed. Just copy and paste the drupal folder from desktop to your /var/www folder.
OR
Method 2:
Go to Application -> Accessories -> Terminal. And type the below code in terminal and hit enter.

cd Desktop
sudo mv drupal /var/www

Type your ubuntu password if needed.

3.Create a database using phpMyAdmin

follow these steps:

For phpmyadmin,apache,mysql,php installation click here

Open your browser and type

http://localhost/phpmyadmin/

in the address bar and press enter. Type your mysql root username and password to login. choose a name for your drupal database,enter it in the Create new database field, and click Create.

4.Install and configure drupal

Go to Application -> Accessories -> Terminal. And type the below code in terminal and hit enter.

gksudo nautilus

Type your ubuntu password if needed.Go to the default folder in your drupal ie:  /var/www/drupal/sites/default . and open default.settings.php file and save as settings.php in the same folder (ie) /var/www/drupal/sites/default/settings.php .
Open your terminal and type the below code and hit enter to change the file permission.

sudo chmod 777 -R /var/www/drupal/sites/default/settings.php

Open

http://localhost/drupal/

in your browser. If you are getting below error “Forbidden You don’t have permission to access /drupal/ on this server”. just change the permission of your drupal folder.To do this
Go to Application -> Accessories -> Terminal. And type the below code in terminal and hit enter.

sudo chmod 777 -R /var/www/drupal

Type your ubuntu password if needed.
Now go to http://localhost/drupal/.
Click Save and continue then click Save and continue.
Type your database name,database username,database password and click Save and continue.

Just avoid the above warning message if you are installing drupal in your test server or if you need it change the permissions.

Fill all the mandatory details and click Save and continue.


Click visit your new site or go to http://localhost/drupal/

20% lifetime off - Tekecho Web hosting

avatar
Author :  

Hello visitor! Subscribe to the RSS feed or subscribe via email to receive updates.

Browse related articles

How to enable auto login in Ubuntu 12.04 How to enable auto login in Ubuntu 12.04

Professional budget Web hosting starts from $2.00. Cpanel -Control Panel,Softaculous -Auto Script Installer.PHP and Mysql.RVSkin To enable auto login in Ubuntu 12.04 1.Open system settings.To open system settings, click the Dash home from unity launcher.And type system settings in the search field. And click system settings. 2.Click User Accounts. 3.Then click Unlock button and type [...]

How to install conky on ubuntu How to install conky on ubuntu

Professional budget Web hosting starts from $2.00. Cpanel -Control Panel,Softaculous -Auto Script Installer.PHP and Mysql.RVSkin Conky is a free, light-weight system monitor for X, that displays any information on your desktop as text, or using simple progress bars and graph widgets, with different fonts and colours. To install conky on ubuntu 1.Open Terminal.To open terminal [...]

How to install Cinnamon desktop environment on ubuntu How to install Cinnamon desktop environment on ubuntu

Professional budget Web hosting starts from $2.00. Cpanel -Control Panel,Softaculous -Auto Script Installer.PHP and Mysql.RVSkin Cinnamon is a free desktop environment from Linux Mint.It looks like a traditional GNOME 2 desktop but it is based on the modern GNOME Shell. To install Cinnamon desktop environment on ubuntu 1.Open Terminal.To open terminal click the Dash home [...]

How to install bluefish on ubuntu How to install bluefish on ubuntu

Professional budget Web hosting starts from $2.00. Cpanel -Control Panel,Softaculous -Auto Script Installer.PHP and Mysql.RVSkin Bluefish is free text editor with many tools for development of dynamic websites.It supports many programming and markup languages. Bluefish supports HTML, XHTML, CSS, XML, PHP, C, C++, JavaScript, Java, Google Go, Vala, Ada, D, SQL, Perl, ColdFusion, JSP, Python, [...]