SlideShare uma empresa Scribd logo
1 de 19
A Comprehensive Guide to Drupal Installation in Debian-based Systems
By Rovic Honrado
Drupal from Scratch
A Comprehensive Guide to Drupal Installation in Debian-based
Systems
Pre-requisite:
 Pre-installed debian-based system such as Linux Mint, Ubuntu
 If running with Windows OS, should have VMWare that has
debian-based system
Training Objectives:
 To be able to install the latest Drupal Core into the system
using command lines smoothly (Geek Mode )
 To be able to install and setup you very own virtual servers,
MySQL database and latest PHP programming language
 To be able to create fake domains instead of ‘localhost’ on your
browser
 You will learn how to setup your very own Drupal Site!!!
The Drupal Core…
 To install the latest version of Drupal,
go to drupal.org/project/drupal.
Download Drupal Core recommended
release – drupal-7.22.zip -
https://drupal.org/project/drupal
 Extract to your preferred folder, ex.
/home/user/. Rename the extracted
folder to any name you like.
 3. Download PHP5, Apache2 & MySQL Server to
prepare your local machine for Drupal installation.
a. Open Terminal, type below command to update
current OS version, this will avoid ‘Failed to fetch’
error:
~$ sudo apt-get update
b. Then install the following:
~$ sudo apt-get install mysql-server-5.5 php5
php5-mysql php5-gd apache2 -y
- include -y to your command to force decide as
yes for installation then press Enter
You will be prompt to set your MySQL root password. For
training
purposes, just set your password to 'root'. Then re-enter set
password. Installation will proceed.
d. After setting up of your local machine, configure
virtual host to create fake domain for local
machine web development:
Enable the rewrite module for apache with this
command; this will setup Clean URLs with
Apache2 on your system:
~$ sudo a2enmod rewrite
You can check to see if this worked by running:
~$ sudo apache2ctl -M
e. Create dynamic virtual hosts in Apache HTTP
with vhost_alias.
This module creates dynamically configured virtual
hosts, by allowing the IP address and/or the
Host: header of the HTTP request to be used as part of
the pathname to determine what files to serve.
Exactly what you need.
~$ sudo a2enmod vhost_alias
f. To activate new configuration, run:
~$ sudo service apache2 restart
f. You will now setup your Virtual Host by creating
the below configuration:
~$ sudo gedit /etc/apache2/sites-available/default
Note: select what text editor is installed in your
system (gedit, pluma, geany) and replace the
above command. You can change 'default' to
any virtual host you prefer.
ex. drupaltraining. This will open text editor to set
virtual host configuration. Type the following:
<Virtualhost *:80>
ServerName dev.drupaltraining.org
DocumentRoot /home/user/drupal
</Virtualhost>
note: For the DocumentRoot, provide the directory
path of your extracted drupal files. Ex.
g. Configure your localhost 127.0.1.1 to include
your fake domain to listing:
~$ sudo gedit /etc/hosts
Note: select what text editor is installed in your
system (gedit, pluma, geany) and replace the
above command.
This will open hosts file configuration. Include your
fake domain in host listing:
127.0.0.1 localhost
127.0.1.1 ubuntu.ubuntu-domain ubuntu
127.0.1.1 dev.drupaltraining.org
h. Enable Virtual Host configuration.
~$ sudo a2ensite drupaltraining
To activate new configuration, run:
~$ sudo service apache2 reload
Congratulations!!!
Your local machine is
now ready for Drupal!
Hmm..What’s Next?
Setting up your MySQL
Server
1. To access MySQL server, run the following command:
~$ sudo mysql -u root -p
You will be asked for your root password, type your
password that you set during installation, ex. 'root'.
When you see mysql>, it means that you have
successfully accessed your MySQL server.
2. Create your site database. You can create any
database name you want. For training purposes, I
created drupaltraining database. Type the below
command:
mysql> create database drupaltraining;
3. To check if you have successfully created your
database, run:
mysql> show databases;
+------------------------------+
| Database |
+------------------------------+
| information_schema |
| d7 |
| drupaltraining |
| mysql |
| performance_schema |
+------------------------------+
5 rows in set (0.37 sec)
4. Type exit to go back to command prompt.
Congratulations!!!
You have now
successfully setup
your site database!
Hmm..What’s Next?
Caution!
Errors such as PDO, GD, missing
‘files’
directory, no settings.php, sometimes
give us little frustrations on our first
Installation attempt.
To prevent this, we will prepare our
system
to correct these before Bugging us.
PREPARING REQUIRED DRUPAL SUB-FOLDER
AND SETTINGS.PHP FOR SMOOTH
INSTALLATION
Drupal installation requires 'files' directory under
/drupal/sites/default/
1. To create 'files' directory under
/drupal/sites/default/, run:
~$ mkdir ~/drupal/sites/default/files
Change 'files' directory permission to make it
writable by running below command:
~$ sudo chmod 777 ~/drupal/sites/default/files
2. Copy and rename default.settings.php to settings.php
and save it to /drupal/sites/default directory. Run:
~$ cp drupal/sites/default/default.settings.php
drupal/sites/default/settings.php
3. Change settings.php permission to make it writable,
run:
~$ sudo chmod 777 drupal/sites/default/settings.php
Congratulations!
You’re almost there! You already eliminated the
errors that will block you from creating awesome
websites.
SETTING UP YOUR FIRST DRUPAL SITE
1. Open your browser and type your fake domain. ex.
dev.drupaltraining.org
2. You will be redirected to
dev.drupaltraining.org/install.php
3. Follow step by step installation.
a. Choose profile
- Standard
b. Choose language
- Default
c. Verify requirements. With all error-free preparation,
this will run smoothly
e. Install profile
- Drupal installation will now start, including 28
core modules
f. Configure site
- Type site information like Site name, site
email address, username, user email address,
password, server settings
- Uncheck 'Check for updates automatically’
- Save and continue
Congratulations!
You can now view your new site!
Modules to install:
To install contributed modules, you need to create
'contrib' directory under /drupal/sites/all/modules/. To
create directory using command line, type:
~$ mkdir drupal/sites/all/modules/contrib
Download the following modules and extract to contrib
directory, not complete but essential:
- admin - feeds - pathauto
- ckeditor - feeds - token
- ctools - features - views
- devel - library - views_slideshow
- eva - module_filter
Thank You!!!

Mais conteúdo relacionado

Mais procurados

Docker & CoreOS at Utah Gophers
Docker & CoreOS at Utah GophersDocker & CoreOS at Utah Gophers
Docker & CoreOS at Utah GophersJosh Braegger
 
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Nag Arvind Gudiseva
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - EntornoKeopx
 
#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to Ansible#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to AnsibleCédric Delgehier
 
Linux apache installation
Linux apache installationLinux apache installation
Linux apache installationDima Gomaa
 
Using docker for data science - part 2
Using docker for data science - part 2Using docker for data science - part 2
Using docker for data science - part 2Calvin Giles
 
Using python and docker for data science
Using python and docker for data scienceUsing python and docker for data science
Using python and docker for data scienceCalvin Giles
 
Puppet Intfrastructure as Code
Puppet Intfrastructure as CodePuppet Intfrastructure as Code
Puppet Intfrastructure as CodeSamir Chekkal
 
Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)Jude A. Goonawardena
 
Dspace-1.8.2 Installation on Centos-6.3
Dspace-1.8.2 Installation on Centos-6.3Dspace-1.8.2 Installation on Centos-6.3
Dspace-1.8.2 Installation on Centos-6.3Nur Ahammad
 
Getting Started with Ansible
Getting Started with AnsibleGetting Started with Ansible
Getting Started with Ansibleahamilton55
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmersMd. Al Amin
 
Ansible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife OrchestrationAnsible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife Orchestrationbcoca
 

Mais procurados (20)

Docker, c'est bonheur !
Docker, c'est bonheur !Docker, c'est bonheur !
Docker, c'est bonheur !
 
Docker & CoreOS at Utah Gophers
Docker & CoreOS at Utah GophersDocker & CoreOS at Utah Gophers
Docker & CoreOS at Utah Gophers
 
Linux
LinuxLinux
Linux
 
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
Hadoop 2.0 cluster setup on ubuntu 14.04 (64 bit)
 
Sahu
SahuSahu
Sahu
 
Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04Hadoop 2.4 installing on ubuntu 14.04
Hadoop 2.4 installing on ubuntu 14.04
 
Run wordcount job (hadoop)
Run wordcount job (hadoop)Run wordcount job (hadoop)
Run wordcount job (hadoop)
 
Contribuir a Drupal - Entorno
Contribuir a Drupal - EntornoContribuir a Drupal - Entorno
Contribuir a Drupal - Entorno
 
#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to Ansible#OktoCampus - Workshop : An introduction to Ansible
#OktoCampus - Workshop : An introduction to Ansible
 
Linux apache installation
Linux apache installationLinux apache installation
Linux apache installation
 
Configuration Management in Ansible
Configuration Management in Ansible Configuration Management in Ansible
Configuration Management in Ansible
 
Using docker for data science - part 2
Using docker for data science - part 2Using docker for data science - part 2
Using docker for data science - part 2
 
Using python and docker for data science
Using python and docker for data scienceUsing python and docker for data science
Using python and docker for data science
 
Puppet Intfrastructure as Code
Puppet Intfrastructure as CodePuppet Intfrastructure as Code
Puppet Intfrastructure as Code
 
Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)Introduction to Ansible - (dev ops for people who hate devops)
Introduction to Ansible - (dev ops for people who hate devops)
 
Dspace-1.8.2 Installation on Centos-6.3
Dspace-1.8.2 Installation on Centos-6.3Dspace-1.8.2 Installation on Centos-6.3
Dspace-1.8.2 Installation on Centos-6.3
 
Hadoop Installation
Hadoop InstallationHadoop Installation
Hadoop Installation
 
Getting Started with Ansible
Getting Started with AnsibleGetting Started with Ansible
Getting Started with Ansible
 
Linux for programmers
Linux for programmersLinux for programmers
Linux for programmers
 
Ansible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife OrchestrationAnsible - Swiss Army Knife Orchestration
Ansible - Swiss Army Knife Orchestration
 

Semelhante a Drupal from scratch

Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows habeebulla g
 
Single node hadoop cluster installation
Single node hadoop cluster installation Single node hadoop cluster installation
Single node hadoop cluster installation Mahantesh Angadi
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configurationSubhas Kumar Ghosh
 
R hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopR hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopAiden Seonghak Hong
 
Drupal on your laptop
Drupal on your laptopDrupal on your laptop
Drupal on your laptopSam Moore
 
Installation of Drupal on Windows XP with XAMPP
Installation of Drupal on Windows XP with XAMPPInstallation of Drupal on Windows XP with XAMPP
Installation of Drupal on Windows XP with XAMPPRupesh Kumar
 
Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1beckman16
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2benjaminwootton
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesGerald Villorente
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011Alfred Ayache
 
Drupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsDrupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsAndrii Lundiak
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Kaan Aslandağ
 
New: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPNew: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPRupesh Kumar
 
Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1vijayraghav
 
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDaysLuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDaysLuis Rodríguez Castromil
 

Semelhante a Drupal from scratch (20)

Hadoop installation on windows
Hadoop installation on windows Hadoop installation on windows
Hadoop installation on windows
 
Hadoop on osx
Hadoop on osxHadoop on osx
Hadoop on osx
 
Single node hadoop cluster installation
Single node hadoop cluster installation Single node hadoop cluster installation
Single node hadoop cluster installation
 
02 Hadoop deployment and configuration
02 Hadoop deployment and configuration02 Hadoop deployment and configuration
02 Hadoop deployment and configuration
 
R hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing HadoopR hive tutorial supplement 1 - Installing Hadoop
R hive tutorial supplement 1 - Installing Hadoop
 
Drupal on your laptop
Drupal on your laptopDrupal on your laptop
Drupal on your laptop
 
Jones_Lamp_Tutorial
Jones_Lamp_TutorialJones_Lamp_Tutorial
Jones_Lamp_Tutorial
 
Lumen
LumenLumen
Lumen
 
Installation of Drupal on Windows XP with XAMPP
Installation of Drupal on Windows XP with XAMPPInstallation of Drupal on Windows XP with XAMPP
Installation of Drupal on Windows XP with XAMPP
 
Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1Drupalxamppxp 1229687989691791 1
Drupalxamppxp 1229687989691791 1
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Drupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsDrupal Deployment Troubles and Problems
Drupal Deployment Troubles and Problems
 
Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8Configuration of Apache Web Server On CentOS 8
Configuration of Apache Web Server On CentOS 8
 
New: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPPNew: Two Methods of Installing Drupal on Windows XP with XAMPP
New: Two Methods of Installing Drupal on Windows XP with XAMPP
 
Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1Drupalxamppxp2 1231342958532404 1
Drupalxamppxp2 1231342958532404 1
 
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDaysLuisRodriguezLocalDevEnvironmentsDrupalOpenDays
LuisRodriguezLocalDevEnvironmentsDrupalOpenDays
 

Drupal from scratch

  • 1. A Comprehensive Guide to Drupal Installation in Debian-based Systems By Rovic Honrado
  • 2. Drupal from Scratch A Comprehensive Guide to Drupal Installation in Debian-based Systems Pre-requisite:  Pre-installed debian-based system such as Linux Mint, Ubuntu  If running with Windows OS, should have VMWare that has debian-based system Training Objectives:  To be able to install the latest Drupal Core into the system using command lines smoothly (Geek Mode )  To be able to install and setup you very own virtual servers, MySQL database and latest PHP programming language  To be able to create fake domains instead of ‘localhost’ on your browser  You will learn how to setup your very own Drupal Site!!!
  • 3. The Drupal Core…  To install the latest version of Drupal, go to drupal.org/project/drupal. Download Drupal Core recommended release – drupal-7.22.zip - https://drupal.org/project/drupal  Extract to your preferred folder, ex. /home/user/. Rename the extracted folder to any name you like.
  • 4.  3. Download PHP5, Apache2 & MySQL Server to prepare your local machine for Drupal installation. a. Open Terminal, type below command to update current OS version, this will avoid ‘Failed to fetch’ error: ~$ sudo apt-get update b. Then install the following: ~$ sudo apt-get install mysql-server-5.5 php5 php5-mysql php5-gd apache2 -y - include -y to your command to force decide as yes for installation then press Enter You will be prompt to set your MySQL root password. For training purposes, just set your password to 'root'. Then re-enter set password. Installation will proceed.
  • 5. d. After setting up of your local machine, configure virtual host to create fake domain for local machine web development: Enable the rewrite module for apache with this command; this will setup Clean URLs with Apache2 on your system: ~$ sudo a2enmod rewrite You can check to see if this worked by running: ~$ sudo apache2ctl -M
  • 6. e. Create dynamic virtual hosts in Apache HTTP with vhost_alias. This module creates dynamically configured virtual hosts, by allowing the IP address and/or the Host: header of the HTTP request to be used as part of the pathname to determine what files to serve. Exactly what you need. ~$ sudo a2enmod vhost_alias f. To activate new configuration, run: ~$ sudo service apache2 restart
  • 7. f. You will now setup your Virtual Host by creating the below configuration: ~$ sudo gedit /etc/apache2/sites-available/default Note: select what text editor is installed in your system (gedit, pluma, geany) and replace the above command. You can change 'default' to any virtual host you prefer. ex. drupaltraining. This will open text editor to set virtual host configuration. Type the following: <Virtualhost *:80> ServerName dev.drupaltraining.org DocumentRoot /home/user/drupal </Virtualhost> note: For the DocumentRoot, provide the directory path of your extracted drupal files. Ex.
  • 8. g. Configure your localhost 127.0.1.1 to include your fake domain to listing: ~$ sudo gedit /etc/hosts Note: select what text editor is installed in your system (gedit, pluma, geany) and replace the above command. This will open hosts file configuration. Include your fake domain in host listing: 127.0.0.1 localhost 127.0.1.1 ubuntu.ubuntu-domain ubuntu 127.0.1.1 dev.drupaltraining.org h. Enable Virtual Host configuration. ~$ sudo a2ensite drupaltraining To activate new configuration, run: ~$ sudo service apache2 reload
  • 9. Congratulations!!! Your local machine is now ready for Drupal! Hmm..What’s Next?
  • 10. Setting up your MySQL Server 1. To access MySQL server, run the following command: ~$ sudo mysql -u root -p You will be asked for your root password, type your password that you set during installation, ex. 'root'. When you see mysql>, it means that you have successfully accessed your MySQL server. 2. Create your site database. You can create any database name you want. For training purposes, I created drupaltraining database. Type the below command: mysql> create database drupaltraining;
  • 11. 3. To check if you have successfully created your database, run: mysql> show databases; +------------------------------+ | Database | +------------------------------+ | information_schema | | d7 | | drupaltraining | | mysql | | performance_schema | +------------------------------+ 5 rows in set (0.37 sec) 4. Type exit to go back to command prompt.
  • 12. Congratulations!!! You have now successfully setup your site database! Hmm..What’s Next?
  • 13. Caution! Errors such as PDO, GD, missing ‘files’ directory, no settings.php, sometimes give us little frustrations on our first Installation attempt. To prevent this, we will prepare our system to correct these before Bugging us.
  • 14. PREPARING REQUIRED DRUPAL SUB-FOLDER AND SETTINGS.PHP FOR SMOOTH INSTALLATION Drupal installation requires 'files' directory under /drupal/sites/default/ 1. To create 'files' directory under /drupal/sites/default/, run: ~$ mkdir ~/drupal/sites/default/files Change 'files' directory permission to make it writable by running below command: ~$ sudo chmod 777 ~/drupal/sites/default/files
  • 15. 2. Copy and rename default.settings.php to settings.php and save it to /drupal/sites/default directory. Run: ~$ cp drupal/sites/default/default.settings.php drupal/sites/default/settings.php 3. Change settings.php permission to make it writable, run: ~$ sudo chmod 777 drupal/sites/default/settings.php Congratulations! You’re almost there! You already eliminated the errors that will block you from creating awesome websites.
  • 16. SETTING UP YOUR FIRST DRUPAL SITE 1. Open your browser and type your fake domain. ex. dev.drupaltraining.org 2. You will be redirected to dev.drupaltraining.org/install.php 3. Follow step by step installation. a. Choose profile - Standard b. Choose language - Default c. Verify requirements. With all error-free preparation, this will run smoothly
  • 17. e. Install profile - Drupal installation will now start, including 28 core modules f. Configure site - Type site information like Site name, site email address, username, user email address, password, server settings - Uncheck 'Check for updates automatically’ - Save and continue Congratulations! You can now view your new site!
  • 18. Modules to install: To install contributed modules, you need to create 'contrib' directory under /drupal/sites/all/modules/. To create directory using command line, type: ~$ mkdir drupal/sites/all/modules/contrib Download the following modules and extract to contrib directory, not complete but essential: - admin - feeds - pathauto - ckeditor - feeds - token - ctools - features - views - devel - library - views_slideshow - eva - module_filter