How to Install Drupal in Ubuntu localhost the easy way

4 Comments By anuradham

Drupal is one of the famous content management systems (CMS) in the world. You can create multi-functional dynamic web sites with CMSs. With this short how-to, let’s get a clean Drupal installation done in an Ubuntu Environment.

Let’s use the terminal (command line) to do server level operations.

[1] Download the drupal files from the web site and extract the files to the web root (/var/www/)

$ wget http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz && sudo cp drupal-6.14.tar.gz /var/www/
(you’ll have to provide the sudo password to copy the files to the web root)

$ cd /var/www/ && sudo tar xvvzf drupal-6.14.tar.gz

image1

Now that you have placed the files in the web root. Let’s create a user and a database for drupal.

$ sudo useradd drupal (Give what ever the user name you want and the password)

Create a MySQL database.

$ mysql -u root -p

mysql> create database drupal;

mysql> grant all on drupal.* to drupal@localhost identified by ‘password’;

mysql> flush privileges;

image2

Okay now we have the database and credentials for drupal user to manipulate that database.

For ease of use let’s rename to drupal-6.14 to just “drupal”.

$ sudo mv drupal-6.14 drupal

You need to do a small tweek before you begin the installation.

The Drupal installer requires that you create a settings file as part of the installation process.

1. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
2. Change file permissions so that it is writable by the web server.

Make the ./sites/default writable for the time being until the installation ends.

chmod 777 ./sites/default (Make sure you make it to 755 later)

Take the web browser and start the installer.

image 3

You need to fill out the database name, user, password to connect your drupal site to the MySQL database. And make the defaut directory write protected after installation.

image 7

After you log in to Administrator panel, you can customize the theme, add new modules, manipulate the site and do many more things.

image8


Related posts:

  1. How to Install software in Ubuntu
  2. Mount is denied because NTFS is marked to be in use problem ubuntu
  3. How to crack file password using google
  4. How to visit password-protected websites without registering
  5. How to Change the Default installation directory

Share
FOSS, How to, Tricks, linux

About the author

The author didnt add any Information to his profile yet

4 Responses to “How to Install Drupal in Ubuntu localhost the easy way”

  1. How to Install Drupal in Ubuntu|install drupal in linux localhost … | www.kotihost.com says:

    [...] How to Install Drupal in Ubuntu|install drupal in linux localhost … Share and [...]

  2. How to Install Drupal in Ubuntu|install drupal in linux localhost … Ubuntu Netbook says:

    [...] here:  How to Install Drupal in Ubuntu|install drupal in linux localhost … By admin | category: ubuntu install | tags: drupal, easiest, easy, host-the-easiest, [...]

  3. How to install Joomla on an Ubuntu localhost | Computer Talks |Fix Problems of your PC says:

    [...] CMS installations than early days.In our previous CMS tutorial for linux we gave you instructions on how to install drupal in localhost .Follow the steps below to come up with a quick Jommla installation on your local machine where you [...]

  4. Maarten says:

    I believe there needs to be a chmod -R 777 ./default/sites/. The recursive sets all directories below it also on 755.

    Cheers

Leave a Reply

Nothing Found

Sorry, no posts matched your criteria