SlideShare a Scribd company logo
Setting VDD Vagrant for Drupal
Development
Prepared by:
Eleison B. Cruz
Front-end Web Developer
Wembassy Ltd.
Who I am ??
Front end developer at
Wembassy Ltd.
Former junior officer in
BDO, career shifter
Develop websites
using Drupal 7, and
Wordpress.
What is Vagrant?
Vagrant is an open source software that wraps
around VirtualBox virtualization platform that
manages server instances for the user.
Vagrant creates automation for every
workstations that eliminates inconsistencies in
the software due to different environment.
Vagrant will b.e running under Ubuntu 12
What is Vagrant?
Vagrant may replace XAMPP/MAMPP/WAMPP
Windows users will be more familiar in
Ubuntu Environment
Vagrant may also use other CMS technologies
such Wordpress, and Magento.
Setting up your first Vagrant
environment.
Softwares needed:
Virtual Box
Vagrant Drupal Environment (VDD)
Vagrant
For Windows users (PuTTy will be needed for
Vagrant box)
Setting up your first Vagrant
environment
Setting up your first Vagrant
environment
Download VDD from
https://www.drupal.org/node/2008792
After installing VirtualBox and Vagrant, paste
the uncompressed VDD to any directory you
want.
Open the Terminal (for Windows install Git,
then it will provide Git Bash console)
Go to your chosen VDD directory then type:
$ vagrant up
Setting up your first Vagrant
environment
In your local machine, set up the usual vhost
configuration but with another IP address for
localhost:
# Sites declared in VDD's config.json
192.168.44.44 mydrupal7.dev # your project name
192.168.44.44 www.mydrupal7.dev # IP address alias
Setting up your first Vagrant
environment
Paste your project files (either CMS project files such drupal7, wordpress, magento, etc) to
/vdd/data/
Access the config.json file under /vdd :
"mydrupal7": {
"account_name": "root",
"account_pass": "root",
"account_mail": "box@example.com",
"site_name": "Drupal 7",
"site_mail": "box@example.com",
"vhost": {
"document_root": "drupal7",
"url": "mydrupal7.dev",
"alias": ["www.mydrupal7.dev"]
}
}
Setting up your first Vagrant
environment
Now use your Terminal, go to /vdd directory,
then type this vagrant command:
$ vagrant reload (it will take sometime … so
get some coffee or some stretching)
$ vagrant ssh (it will access to the server thru
ssh (secure server shell) )
Setting up your first Vagrant
environment
Note: Vagrant VDD already installed PhP,
Apache Server, MySQL, and GiT. The default
username and password of MySQL is root →
root.
Set up now your MySQL database in
accordance of your project.
Setting up your first Vagrant
environment
Access your /etc/hosts
Then type this at the bottom:
192.168.44.44 mydrupal7.dev
192.168.44.44 www.drupal7.dev
Note: You should be familiar in the default IDE
in server side such Nano and Vim
Setting up your first Vagrant
environment
Now access your localhost.conf thru:
$ sudo nano /etc/apache2/sites-available/localhost.conf
Then add this vhost configuration to suit your
vagrant environment:
<VirtualHost *:80>
DocumentRoot /var/www/mydrupal7
ServerName mydrupal7.dev
ServerAlias www.mydrupal7.dev
ServerAdmin box@example.com
RewriteEngine On
ErrorLog /var/log/apache2/mydrupal7.error.log
LogLevel warn
CustomLog /var/log/apache2/mydrupal7.access.log combined
ServerSignature On
</VirtualHost>
Setting up your first Vagrant
environment
Restart your server :
$ sudo service apache2 restart
Exit to your SSH by typing “exit”
Reload your vagrant to take effect changes
and install necessary updates if needed.
$ vagrant reload
Access your SSH once again.
Setting up your first Vagrant
environment
Your project should be able to display in your
favorite browsers:
http://www.mydrupal7.dev
or
mydrupal.dev
Setting up your first Vagrant
environment
Your project should be able to display in your
favorite browsers:
http://www.mydrupal7.dev
or
mydrupal.dev
To fasten Drupal website under
Vagrant Environment
For Linux/Ubuntu, type this on your local
machine:
sudo apt-get install nfs-kernel-server
Change your config.json, find this setup:
"synced_folders": [
{
"host_path": "data/",
"guest_path": "/var/www",
"type": "default"
}
],
To fasten Drupal website under
Vagrant Environment
Then change it into:
"type": "nfs"
Then reload the vagrant:
$ vagrant reload
For more info please refer for this link:
https://www.drupal.org/node/2008792
Additional Resources
https://www.andrewmunsell.com/blog/developme
nt-environments-with-vagrant-and-puppet
https://www.andrewmunsell.com/blog/developme
nt-environments-with-vagrant-and-puppet
StackOverflow
https://www.drupal.org/node/200879
Additional Notes
Notes:
There 5 necessary tasks you have to do in
setting projects under VDD Vagrant :
In your local machine:
Paste your project under /vdd/data/
Set your config.json file
Configure your vhost IP address and alias in /etc/hosts
In your SSH environment
Set your IP and alias in /etc/hosts
Configure your Vhost in /etc/apache2/sites-
available/localhost.conf
Thank You!!!

More Related Content

What's hot

Vagrant hands on workshop for beginners
Vagrant hands on workshop for beginnersVagrant hands on workshop for beginners
Vagrant hands on workshop for beginners
Liora Milbaum
 
Puppet and Vagrant in development
Puppet and Vagrant in developmentPuppet and Vagrant in development
Puppet and Vagrant in development
Adam Culp
 
Virtualization for Developers
Virtualization for DevelopersVirtualization for Developers
Virtualization for Developers
John Coggeshall
 
Development with Vagrant
Development with VagrantDevelopment with Vagrant
Development with Vagrant
John Coggeshall
 
Local development with vvv jon trujillo
Local development with vvv   jon trujilloLocal development with vvv   jon trujillo
Local development with vvv jon trujillo
Jonathan Trujillo
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
bocribbz
 
Cache all the things - A guide to caching Drupal
Cache all the things - A guide to caching DrupalCache all the things - A guide to caching Drupal
Cache all the things - A guide to caching Drupal
digital006
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Fleep Tuque
 
DevOps: Docker Workshop
DevOps: Docker WorkshopDevOps: Docker Workshop
DevOps: Docker Workshop
Joonas Hämäläinen
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
dotCloud
 
Advanced Web Hosting
Advanced Web HostingAdvanced Web Hosting
Advanced Web Hosting
OVHcloud
 
Docker in Action
Docker in ActionDocker in Action
Docker in Action
Alper Kanat
 
Minicurso de Vagrant
Minicurso de VagrantMinicurso de Vagrant
Minicurso de Vagrant
Leandro Nunes
 
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto GarcíaOpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
OpenNebula Project
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
dotCloud
 
Docker Clustering - Batteries Included
Docker Clustering - Batteries IncludedDocker Clustering - Batteries Included
Docker Clustering - Batteries Included
C4Media
 
Dockerizing pharo
Dockerizing pharoDockerizing pharo
Dockerizing pharo
Masashi Umezawa
 
Single node setup
Single node setupSingle node setup
Single node setupKBCHOW123
 

What's hot (20)

Vagrant
VagrantVagrant
Vagrant
 
Vagrant hands on workshop for beginners
Vagrant hands on workshop for beginnersVagrant hands on workshop for beginners
Vagrant hands on workshop for beginners
 
Puppet and Vagrant in development
Puppet and Vagrant in developmentPuppet and Vagrant in development
Puppet and Vagrant in development
 
Virtualization for Developers
Virtualization for DevelopersVirtualization for Developers
Virtualization for Developers
 
Development with Vagrant
Development with VagrantDevelopment with Vagrant
Development with Vagrant
 
Local development with vvv jon trujillo
Local development with vvv   jon trujilloLocal development with vvv   jon trujillo
Local development with vvv jon trujillo
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
 
Cache all the things - A guide to caching Drupal
Cache all the things - A guide to caching DrupalCache all the things - A guide to caching Drupal
Cache all the things - A guide to caching Drupal
 
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim SandboxInstalling OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
Installing OpenSim (Diva Distro) to Create Your Own Private Sim Sandbox
 
DevOps: Docker Workshop
DevOps: Docker WorkshopDevOps: Docker Workshop
DevOps: Docker Workshop
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Advanced Web Hosting
Advanced Web HostingAdvanced Web Hosting
Advanced Web Hosting
 
Docker in Action
Docker in ActionDocker in Action
Docker in Action
 
Minicurso de Vagrant
Minicurso de VagrantMinicurso de Vagrant
Minicurso de Vagrant
 
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto GarcíaOpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
OpenNebulaConf2015 2.02 Backing up your VM’s with Bacula - Alberto García
 
Installing and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command lineInstalling and running Postfix within a docker container from the command line
Installing and running Postfix within a docker container from the command line
 
Docker Clustering - Batteries Included
Docker Clustering - Batteries IncludedDocker Clustering - Batteries Included
Docker Clustering - Batteries Included
 
Virtual boxen
Virtual boxenVirtual boxen
Virtual boxen
 
Dockerizing pharo
Dockerizing pharoDockerizing pharo
Dockerizing pharo
 
Single node setup
Single node setupSingle node setup
Single node setup
 

Viewers also liked

Automating Drupal Deployment
Automating Drupal DeploymentAutomating Drupal Deployment
Automating Drupal Deployment
Gerald Villorente
 
Drupal development, deployment, and automation with Puppet
Drupal development, deployment, and automation with PuppetDrupal development, deployment, and automation with Puppet
Drupal development, deployment, and automation with Puppet
Puppet
 
Drupal Deployment
Drupal DeploymentDrupal Deployment
Drupal Deployment
q0rban
 
Drupal Deployment
Drupal DeploymentDrupal Deployment
Drupal Deployment
Jeff Eaton
 
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Taller Negócio Digitais
 
Ci. Drupal Camp Berlin 2014
Ci. Drupal Camp Berlin 2014Ci. Drupal Camp Berlin 2014
Ci. Drupal Camp Berlin 2014
Yuriy Gerasimov
 

Viewers also liked (6)

Automating Drupal Deployment
Automating Drupal DeploymentAutomating Drupal Deployment
Automating Drupal Deployment
 
Drupal development, deployment, and automation with Puppet
Drupal development, deployment, and automation with PuppetDrupal development, deployment, and automation with Puppet
Drupal development, deployment, and automation with Puppet
 
Drupal Deployment
Drupal DeploymentDrupal Deployment
Drupal Deployment
 
Drupal Deployment
Drupal DeploymentDrupal Deployment
Drupal Deployment
 
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
 
Ci. Drupal Camp Berlin 2014
Ci. Drupal Camp Berlin 2014Ci. Drupal Camp Berlin 2014
Ci. Drupal Camp Berlin 2014
 

Similar to Foundation of starting your drupal project to vagrant environment

Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechNode.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechChristopher Bumgardner
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
Brian Hogan
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPressDocker, Inc.
 
Vagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress Development
Anthony Alvarez
 
Dockerize Laravel Application
Dockerize Laravel ApplicationDockerize Laravel Application
Dockerize Laravel Application
Afrimadoni Dinata
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez
 
Developing web apps
Developing web appsDeveloping web apps
Developing web apps
Michael Dyrynda
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
Alfred Ayache
 
Preparation study of_docker - (MOSG)
Preparation study of_docker  - (MOSG)Preparation study of_docker  - (MOSG)
Preparation study of_docker - (MOSG)
Soshi Nemoto
 
Creation of Own Cloud
Creation of Own Cloud Creation of Own Cloud
Creation of Own Cloud
Mohammed Adam
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
Dave Pitts
 
Keep calm and vagrant up
Keep calm and vagrant upKeep calm and vagrant up
Keep calm and vagrant up
Daniel Carvalhinho
 
Local development environment through virtualisation
Local development environment through virtualisationLocal development environment through virtualisation
Local development environment through virtualisation
Radu Barbu
 
Vagrant and Docker
Vagrant and DockerVagrant and Docker
Vagrant and Docker
Nascenia IT
 
Using vagrant
Using vagrantUsing vagrant
Using vagrant
Cuong Huynh
 
Vagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy StepsVagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy Steps
Trevor Roberts Jr.
 
Vagrant-Overview
Vagrant-OverviewVagrant-Overview
Vagrant-Overview
Crifkin
 
Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016
Ben Hall
 
Setting up a local web server environment
Setting up a local web server environmentSetting up a local web server environment
Setting up a local web server environment
R-Cubed Design Forge
 
Vm ware server-tips-tricks
Vm ware server-tips-tricksVm ware server-tips-tricks
Vm ware server-tips-tricksunixadminrasheed
 

Similar to Foundation of starting your drupal project to vagrant environment (20)

Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechNode.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ Benetech
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
 
Dockerizing WordPress
Dockerizing WordPressDockerizing WordPress
Dockerizing WordPress
 
Vagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress Development
 
Dockerize Laravel Application
Dockerize Laravel ApplicationDockerize Laravel Application
Dockerize Laravel Application
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
 
Developing web apps
Developing web appsDeveloping web apps
Developing web apps
 
WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011WP Sandbox Presentation WordCamp Toronto 2011
WP Sandbox Presentation WordCamp Toronto 2011
 
Preparation study of_docker - (MOSG)
Preparation study of_docker  - (MOSG)Preparation study of_docker  - (MOSG)
Preparation study of_docker - (MOSG)
 
Creation of Own Cloud
Creation of Own Cloud Creation of Own Cloud
Creation of Own Cloud
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
 
Keep calm and vagrant up
Keep calm and vagrant upKeep calm and vagrant up
Keep calm and vagrant up
 
Local development environment through virtualisation
Local development environment through virtualisationLocal development environment through virtualisation
Local development environment through virtualisation
 
Vagrant and Docker
Vagrant and DockerVagrant and Docker
Vagrant and Docker
 
Using vagrant
Using vagrantUsing vagrant
Using vagrant
 
Vagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy StepsVagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy Steps
 
Vagrant-Overview
Vagrant-OverviewVagrant-Overview
Vagrant-Overview
 
Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016Deploying Windows Containers on Windows Server 2016
Deploying Windows Containers on Windows Server 2016
 
Setting up a local web server environment
Setting up a local web server environmentSetting up a local web server environment
Setting up a local web server environment
 
Vm ware server-tips-tricks
Vm ware server-tips-tricksVm ware server-tips-tricks
Vm ware server-tips-tricks
 

Recently uploaded

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 

Recently uploaded (20)

Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 

Foundation of starting your drupal project to vagrant environment

  • 1. Setting VDD Vagrant for Drupal Development Prepared by: Eleison B. Cruz Front-end Web Developer Wembassy Ltd.
  • 2. Who I am ?? Front end developer at Wembassy Ltd. Former junior officer in BDO, career shifter Develop websites using Drupal 7, and Wordpress.
  • 3. What is Vagrant? Vagrant is an open source software that wraps around VirtualBox virtualization platform that manages server instances for the user. Vagrant creates automation for every workstations that eliminates inconsistencies in the software due to different environment. Vagrant will b.e running under Ubuntu 12
  • 4. What is Vagrant? Vagrant may replace XAMPP/MAMPP/WAMPP Windows users will be more familiar in Ubuntu Environment Vagrant may also use other CMS technologies such Wordpress, and Magento.
  • 5. Setting up your first Vagrant environment. Softwares needed: Virtual Box Vagrant Drupal Environment (VDD) Vagrant For Windows users (PuTTy will be needed for Vagrant box)
  • 6. Setting up your first Vagrant environment
  • 7. Setting up your first Vagrant environment Download VDD from https://www.drupal.org/node/2008792 After installing VirtualBox and Vagrant, paste the uncompressed VDD to any directory you want. Open the Terminal (for Windows install Git, then it will provide Git Bash console) Go to your chosen VDD directory then type: $ vagrant up
  • 8. Setting up your first Vagrant environment In your local machine, set up the usual vhost configuration but with another IP address for localhost: # Sites declared in VDD's config.json 192.168.44.44 mydrupal7.dev # your project name 192.168.44.44 www.mydrupal7.dev # IP address alias
  • 9. Setting up your first Vagrant environment Paste your project files (either CMS project files such drupal7, wordpress, magento, etc) to /vdd/data/ Access the config.json file under /vdd : "mydrupal7": { "account_name": "root", "account_pass": "root", "account_mail": "box@example.com", "site_name": "Drupal 7", "site_mail": "box@example.com", "vhost": { "document_root": "drupal7", "url": "mydrupal7.dev", "alias": ["www.mydrupal7.dev"] } }
  • 10. Setting up your first Vagrant environment Now use your Terminal, go to /vdd directory, then type this vagrant command: $ vagrant reload (it will take sometime … so get some coffee or some stretching) $ vagrant ssh (it will access to the server thru ssh (secure server shell) )
  • 11. Setting up your first Vagrant environment Note: Vagrant VDD already installed PhP, Apache Server, MySQL, and GiT. The default username and password of MySQL is root → root. Set up now your MySQL database in accordance of your project.
  • 12. Setting up your first Vagrant environment Access your /etc/hosts Then type this at the bottom: 192.168.44.44 mydrupal7.dev 192.168.44.44 www.drupal7.dev Note: You should be familiar in the default IDE in server side such Nano and Vim
  • 13. Setting up your first Vagrant environment Now access your localhost.conf thru: $ sudo nano /etc/apache2/sites-available/localhost.conf Then add this vhost configuration to suit your vagrant environment: <VirtualHost *:80> DocumentRoot /var/www/mydrupal7 ServerName mydrupal7.dev ServerAlias www.mydrupal7.dev ServerAdmin box@example.com RewriteEngine On ErrorLog /var/log/apache2/mydrupal7.error.log LogLevel warn CustomLog /var/log/apache2/mydrupal7.access.log combined ServerSignature On </VirtualHost>
  • 14. Setting up your first Vagrant environment Restart your server : $ sudo service apache2 restart Exit to your SSH by typing “exit” Reload your vagrant to take effect changes and install necessary updates if needed. $ vagrant reload Access your SSH once again.
  • 15. Setting up your first Vagrant environment Your project should be able to display in your favorite browsers: http://www.mydrupal7.dev or mydrupal.dev
  • 16. Setting up your first Vagrant environment Your project should be able to display in your favorite browsers: http://www.mydrupal7.dev or mydrupal.dev
  • 17. To fasten Drupal website under Vagrant Environment For Linux/Ubuntu, type this on your local machine: sudo apt-get install nfs-kernel-server Change your config.json, find this setup: "synced_folders": [ { "host_path": "data/", "guest_path": "/var/www", "type": "default" } ],
  • 18. To fasten Drupal website under Vagrant Environment Then change it into: "type": "nfs" Then reload the vagrant: $ vagrant reload For more info please refer for this link: https://www.drupal.org/node/2008792
  • 20. Additional Notes Notes: There 5 necessary tasks you have to do in setting projects under VDD Vagrant : In your local machine: Paste your project under /vdd/data/ Set your config.json file Configure your vhost IP address and alias in /etc/hosts In your SSH environment Set your IP and alias in /etc/hosts Configure your Vhost in /etc/apache2/sites- available/localhost.conf