How to install Drupal on Ubuntu 14.04

drupal logo

Well true is that WordPress It has managed to establish itself as the most important CMS (Content Management System) in the world, and it is well deserved that it has it since its scope is very wide thanks not only to its fundamental characteristics and the fact that it is available from its website or from any server, but also to the lots of plugins and themes that allow us to adapt it to practically any use and design.

But it is clear that there are alternatives, and among them one of the ones that has grown the most is Drupal, a CMS platform which is also open source and is used by millions of sites worldwide, with a community of both users and developers which is very broad and active. It also has many templates and plugins, the vast majority free and some paid for those looking for something exclusive or to differentiate themselves.

We'll see then, how to install Drupal on Ubuntu 14.04, something that we can achieve in a very simple way through a few steps, the main requirement being to have a server. In this case we are going to be based on LAMP, the very popular solution that includes Apache, MySQL and PHP (hence its name, made up of their initials plus Linux). To install it we execute the following from a terminal (Ctrl + Alt + T):

sudo apt-get install mysql-server mysql-client apache2 php5 php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php -recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Now that we have the platform installed in Ubuntu we have to create the database for Drupal, which as it is logical to imagine will be based on MySQL. During the installation process we are asked to enter a password for the MySQL 'root' user, so with it in mind we enter the following commands:

sudo service mysql start

mysql -u root -p

We will be asked for the password, we enter it and we are ready to enter to work with the database, now we need to create a new database called drupaldb, for which we execute:

CREATE DATABASE drupaldb;

Then it is necessary to create the user account of the Drupal database:

CREATE USER drupaluser @ localhost IDENTIFIED BY 'password';

Where 'password' is the one that we want to apply to the user 'drupal user', and that of course we must remember and keep in mind later for all the procedures that we are going to carry out with it in the database. Precisely for this we are going to execute a new command, which is the one that enables the user access to all the features or functionalities:

GRANT ALL PRIVILEGES ON drupaldb. * TO drupaluser @ localhost;

Now we have to save the configuration and exit:

FLUSH PRIVILEGES;

exit

The next step is to configure the site that we are going to manage with Drupal, and for this we need to download the file from the website:

cd / tmp / // wget http://ftp.drupal.org/files/projects/drupal-7.30.zip

We extract the content of said file and move it to the Apache installation root folder, we grant the permissions and start Apache:

unzip drupal * .zip

sudo cp -rf drupal * / * / var / www / html /

sudo chown -R www-data: www-data / var / www / html /

sudo chmod -R 755 / var / www / html /

sudo service apache 2 start

Now we start an http connection to the server, entering localhost / install.php in the address bar, and we will see that we are offered the possibility of selecting the Drupal configuration. Among other things, we can select a minimum or standard profile, the language of the installation or the requirements, but it is about details and the most important thing is that finally we will be ready to use Drupal on our Ubuntu 14.04 based server.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Emeoa. said

    I normally use these commands to install the web server: udo apt-get install apache2, followed by sudo apt-get install php5 libapache2-mod-php5, sudo apt-get install mysql-server,…. but I see that you install other packages such as the mysql client and other things that I really do not understand jjaj, the truth is I want to install the server with the command you show because I see that it has other things too, but the only problem is that you don't install phpmyadmin, so I can install it like this: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin or do I have to do it differently and a question in which part of the command does it relate php with apache and mysql with apache? ?