SlideShare una empresa de Scribd logo
1 de 12
Drupal 7 CMS - Training
Install and Migrate
GENERAL PROSSECUTOR'S OFFICE EAST TIMOR
Paulo Sérgio Amaral
ICT ADVISER
Justice System Programme
paulo.security@gmail.com
About
Provided by Paulo Amaral - ICT - General Prossecutor's Office
Agenda
1 - WHAY IS DRUPAL ?
1.1 - Advantage of Drupal
1.2 - Disadvantage of Drupal
3 - INSTALL DRUPAL 7
4 - MIGRATE DRUPAL
5 - UPDATE DRUPAL
Provided by Paulo Amaral - ICT - General Prossecutor's Office
1- WHY DRUPAL
• Drupal is a free, open-source web development platform for online content and
user communities
1.1 - Advantages of Drupal :
Open Source software
• Large and vibrant community of users and developers
• Many people testing it, finding security issues, etc.
• Many modules freely available from developers
• Many people donating their time to writing documentation, helping new users,
etc.
Flexible architecture
• You can create your own modules for custom features
• You can create your own themes for custom design
Based on standards:
• Core software is PHP/MySQL, giving many hosting options
• Output uses XHTML, CSS, JavaScript, so compatible with most browsers
Provided by Paulo Amaral - ICT - General Prossecutor's Office
1- WHY DRUPAL
• Drupal is a free, open-source web development platform for online content and
user communities
1.2 - Disadvantages of Drupal :
Flexibility = Complexity
• May not be the best alternative for simple or single-functionality sites
• Takes some time to learn
• Takes some time to set up
Free and Open Source = No guarantees
• Free support options may or may not be responsive
• Features you need may or may not be available
• Your feature requests and bug reports may or may not be acted upon
Provided by Paulo Amaral - ICT - General Prossecutor's Office
CHECK DRUPAL VERSION
Find the version number of your currently installed Drupal core. To do that, look in :
# vi /var/www/website/includes/bootstrap.inc
/**
* The current system version.
*/
define('VERSION', '7.4');
Using Drush Drupal Shell
#drush status
Provided by Paulo Amaral - ICT - General Prossecutor's Office
INSTALL DRUPAL 7
TRADITIONAL INSTALL
1 - Install Debian 7
2 - Install LAMP
2 - Download DRUPAL
3 - Create the Drupal database
4 - Run the installation script
5 - Configure
Use this method if unfamiliar with DRUSH
Recomended for begginer sysadmins
Provided by Paulo Amaral - ICT - General Prossecutor's Office
INSTALL DRUPAL 7
DRUSH INSTALLL
1 - Install Debian 7
2 - Download DRUPAL
3 - Install DRUPAL with DRUSH
4 - Configure
DRUSH?
• Drush is an awesome shell interface for managing Drupal right from your server
command line ( Backup, update and others features ) :
Ex : drush status ( verify drupal version , database name and more ).
Provided by Paulo Amaral - ICT - General Prossecutor's Office
MIGRATE DRUPAL
1 - Prepare old content :
Create package with site information . Ex .: tar -czvf filename.tar.gz /var/www /[site ] .
Create drupal dump the databases Ex .: mysqldump -u root -p db > db.sql
2 - Copy content to new or new installation server:
Copy files generated in the previous step using scp to new server.
Ex .: scp *.sql *.tar.gz root@server:/tmp/
3 - Import database on the new server :
Import with the command: mysql -u root -p database < arquivo.sql
4 - Unzip site files in the appropriate directory :
filename.tar.gz xzvf tar -C /var/www/
5 - Test the operation of the site
Access the site on the new server and check operation.
6 - Adjustments and corrections, if necessary
Provided by Paulo Amaral - ICT - General Prossecutor's Office
UPDATE DRUPAL
Using Update.php :
1. Put site in Maintenance Mode
2. Backup your site (Files and DB)
3. Delete Core files (Everything except the 'sites" folder)
4. Replace core files with latest version (less the 'sites' folder)
5. Point your browser to "http://example.com/update.php" and follow the instructions
Reference for read :
http://www.dummies.com/how-to/content/running-drupal-updatephp.html
Using DRUSH :
1- Access Drupal website folder : <drupal_root>/modules/update
2 - drush en update
3 - drush up drupal
> drush pm-update // for drupal core update
> drush pm-update {module-name} // for single module update.
https://www.drupal.org/project/drush
Simple. :)
Provided by Paulo Amaral - ICT - General Prossecutor's Office
UPDATE DRUPAL
Best method :
cd /yourdrupalrootcd /yourdrupalroot
wget http://fuerstnet.de/sites/fuerstnet.de/files/patches/drupal-7.wget http://fuerstnet.de/sites/fuerstnet.de/files/patches/drupal-7.xx-to-7.-to-7.xxxx.patch.patch
apt-get install patchapt-get install patch
patch -p1 --dry-run < PATCHFILEpatch -p1 --dry-run < PATCHFILE
patch -p1 < PATCHFILEpatch -p1 < PATCHFILE
More information can also be found on :
http://fuerstnet.de/en/drupal-upgrade-easier
Enjoy :)
Provided by Paulo Amaral - ICT - General Prossecutor's Office
QUESTIONS ?
NEXT STEPS:NEXT STEPS:
• ADVANCED TRAININGADVANCED TRAINING
• NEW DRUPAL 8 REVIEWNEW DRUPAL 8 REVIEW
THANK YOU !THANK YOU !

Más contenido relacionado

La actualidad más candente

Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionSammy Fung
 
De-centralised Version Control with Bazaar
De-centralised Version Control with BazaarDe-centralised Version Control with Bazaar
De-centralised Version Control with BazaarStuart Colville
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Yazz Atlas
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh thingsMarcus Deglos
 
lamp technology
lamp technologylamp technology
lamp technologyDeepa
 
How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl
How to Install Drupal 101 (for Local Development) - Musings of a Drupal GirlHow to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl
How to Install Drupal 101 (for Local Development) - Musings of a Drupal GirlOlinData
 
Drupal Version Control & File System Basics
Drupal Version Control & File System BasicsDrupal Version Control & File System Basics
Drupal Version Control & File System BasicsJulia Kulla-Mader
 
Perforce Administration: Optimization, Scalability, Availability and Reliability
Perforce Administration: Optimization, Scalability, Availability and ReliabilityPerforce Administration: Optimization, Scalability, Availability and Reliability
Perforce Administration: Optimization, Scalability, Availability and ReliabilityPerforce
 
Installing Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchInstalling Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchAndrey Vykhodtsev
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stackRootGate
 
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...SaltStack
 
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and StatesSaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and StatesSaltStack
 
Drupal, varnish, esi - Toulouse November 2
Drupal, varnish, esi - Toulouse November 2Drupal, varnish, esi - Toulouse November 2
Drupal, varnish, esi - Toulouse November 2Marcus Deglos
 
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversion
Productivity 101: Making a Easily Re-deployable Dev Environment with SubversionProductivity 101: Making a Easily Re-deployable Dev Environment with Subversion
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversionryanduff
 
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu ServerForget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Serveraaroncouch
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutSander Temme
 
Varying wordpressdevelopmentenvironment wp-campus2016
Varying wordpressdevelopmentenvironment wp-campus2016Varying wordpressdevelopmentenvironment wp-campus2016
Varying wordpressdevelopmentenvironment wp-campus2016David Brattoli
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xamppJin Castor
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning InfrastructurePerforce
 

La actualidad más candente (20)

Installation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server EditionInstallation of LAMP Server with Ubuntu 14.10 Server Edition
Installation of LAMP Server with Ubuntu 14.10 Server Edition
 
Lamp ppt
Lamp pptLamp ppt
Lamp ppt
 
De-centralised Version Control with Bazaar
De-centralised Version Control with BazaarDe-centralised Version Control with Bazaar
De-centralised Version Control with Bazaar
 
Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02Salt conf 2014-installing-openstack-using-saltstack-v02
Salt conf 2014-installing-openstack-using-saltstack-v02
 
Performance all teh things
Performance all teh thingsPerformance all teh things
Performance all teh things
 
lamp technology
lamp technologylamp technology
lamp technology
 
How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl
How to Install Drupal 101 (for Local Development) - Musings of a Drupal GirlHow to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl
How to Install Drupal 101 (for Local Development) - Musings of a Drupal Girl
 
Drupal Version Control & File System Basics
Drupal Version Control & File System BasicsDrupal Version Control & File System Basics
Drupal Version Control & File System Basics
 
Perforce Administration: Optimization, Scalability, Availability and Reliability
Perforce Administration: Optimization, Scalability, Availability and ReliabilityPerforce Administration: Optimization, Scalability, Availability and Reliability
Perforce Administration: Optimization, Scalability, Availability and Reliability
 
Installing Hadoop / Spark from scratch
Installing Hadoop / Spark from scratchInstalling Hadoop / Spark from scratch
Installing Hadoop / Spark from scratch
 
How to install and configure LEMP stack
How to install and configure LEMP stackHow to install and configure LEMP stack
How to install and configure LEMP stack
 
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
Arnold Bechtoldt, Inovex GmbH Linux systems engineer - Configuration Manageme...
 
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and StatesSaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
SaltConf14 - Forrest Alvarez, Choice Hotels - Salt Formulas and States
 
Drupal, varnish, esi - Toulouse November 2
Drupal, varnish, esi - Toulouse November 2Drupal, varnish, esi - Toulouse November 2
Drupal, varnish, esi - Toulouse November 2
 
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversion
Productivity 101: Making a Easily Re-deployable Dev Environment with SubversionProductivity 101: Making a Easily Re-deployable Dev Environment with Subversion
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversion
 
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu ServerForget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
Forget MAMP and WAMP, Use Virtual Box to Have a Real Ubuntu Server
 
Apache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling OutApache Performance Tuning: Scaling Out
Apache Performance Tuning: Scaling Out
 
Varying wordpressdevelopmentenvironment wp-campus2016
Varying wordpressdevelopmentenvironment wp-campus2016Varying wordpressdevelopmentenvironment wp-campus2016
Varying wordpressdevelopmentenvironment wp-campus2016
 
Introduction to xampp
Introduction to xamppIntroduction to xampp
Introduction to xampp
 
[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure[MathWorks] Versioning Infrastructure
[MathWorks] Versioning Infrastructure
 

Similar a drupal_training

Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Paul McKibben
 
Deployer - Deployment tool for PHP
Deployer - Deployment tool for PHPDeployer - Deployment tool for PHP
Deployer - Deployment tool for PHPhernanibf
 
Drupal 8 update: May 2014. Migrate in core.
Drupal 8 update: May 2014. Migrate in core.Drupal 8 update: May 2014. Migrate in core.
Drupal 8 update: May 2014. Migrate in core.Vladimir Roudakov
 
Making The Drupal Pill Easier To Swallow
Making The Drupal Pill Easier To SwallowMaking The Drupal Pill Easier To Swallow
Making The Drupal Pill Easier To SwallowPhilip Norton
 
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 PuppetPuppet
 
A new tool for measuring performance in Drupal 8 - Drupal Dev Days Montpellier
A new tool for measuring performance in Drupal 8 - Drupal Dev Days MontpellierA new tool for measuring performance in Drupal 8 - Drupal Dev Days Montpellier
A new tool for measuring performance in Drupal 8 - Drupal Dev Days MontpellierLuca Lusso
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesGerald Villorente
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineKrimson
 
Drupal 8 improvements for developer productivity php symfony and more
Drupal 8 improvements for developer productivity  php symfony and moreDrupal 8 improvements for developer productivity  php symfony and more
Drupal 8 improvements for developer productivity php symfony and moreAcquia
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAJesus Manuel Olivas
 
Drupal Multi-Site Setup
Drupal Multi-Site SetupDrupal Multi-Site Setup
Drupal Multi-Site Setupylynfatt
 
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group   nov 8th - drupal 7.32 security vulnerabilityHong kong drupal user group   nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerabilityAnn Lam
 
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8thHong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8thWong Hoi Sing Edison
 
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group   nov 8th - drupal 7.32 security vulnerabilityHong kong drupal user group   nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerabilityAnn Lam
 
Anthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationAnthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationTony McKeown
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in LibrariesCary Gordon
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishraAnil Mishra
 

Similar a drupal_training (20)

Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
Help! I inherited a Drupal Site! - DrupalCamp Atlanta 2016
 
Deployer - Deployment tool for PHP
Deployer - Deployment tool for PHPDeployer - Deployment tool for PHP
Deployer - Deployment tool for PHP
 
Drupal 8 update: May 2014. Migrate in core.
Drupal 8 update: May 2014. Migrate in core.Drupal 8 update: May 2014. Migrate in core.
Drupal 8 update: May 2014. Migrate in core.
 
Making The Drupal Pill Easier To Swallow
Making The Drupal Pill Easier To SwallowMaking The Drupal Pill Easier To Swallow
Making The Drupal Pill Easier To Swallow
 
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 in-depth
Drupal in-depthDrupal in-depth
Drupal in-depth
 
A new tool for measuring performance in Drupal 8 - Drupal Dev Days Montpellier
A new tool for measuring performance in Drupal 8 - Drupal Dev Days MontpellierA new tool for measuring performance in Drupal 8 - Drupal Dev Days Montpellier
A new tool for measuring performance in Drupal 8 - Drupal Dev Days Montpellier
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
Test
TestTest
Test
 
Towards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev MachineTowards the perfect Drupal Dev Machine
Towards the perfect Drupal Dev Machine
 
Drupal 8 improvements for developer productivity php symfony and more
Drupal 8 improvements for developer productivity  php symfony and moreDrupal 8 improvements for developer productivity  php symfony and more
Drupal 8 improvements for developer productivity php symfony and more
 
Improving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLAImproving your Drupal 8 development workflow DrupalCampLA
Improving your Drupal 8 development workflow DrupalCampLA
 
Drupal Multi-Site Setup
Drupal Multi-Site SetupDrupal Multi-Site Setup
Drupal Multi-Site Setup
 
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group   nov 8th - drupal 7.32 security vulnerabilityHong kong drupal user group   nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
 
Hong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8thHong Kong Drupal User Group - Nov 8th
Hong Kong Drupal User Group - Nov 8th
 
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group   nov 8th - drupal 7.32 security vulnerabilityHong kong drupal user group   nov 8th - drupal 7.32 security vulnerability
Hong kong drupal user group nov 8th - drupal 7.32 security vulnerability
 
Anthony McKeown Drupal Presentation
Anthony McKeown Drupal PresentationAnthony McKeown Drupal Presentation
Anthony McKeown Drupal Presentation
 
Drupal in Libraries
Drupal in LibrariesDrupal in Libraries
Drupal in Libraries
 
Cms drupal installation & configuration anil mishra
Cms drupal installation & configuration   anil mishraCms drupal installation & configuration   anil mishra
Cms drupal installation & configuration anil mishra
 
SAP Basis Overview
SAP Basis OverviewSAP Basis Overview
SAP Basis Overview
 

drupal_training

  • 1. Drupal 7 CMS - Training Install and Migrate GENERAL PROSSECUTOR'S OFFICE EAST TIMOR
  • 2. Paulo Sérgio Amaral ICT ADVISER Justice System Programme paulo.security@gmail.com About
  • 3. Provided by Paulo Amaral - ICT - General Prossecutor's Office Agenda 1 - WHAY IS DRUPAL ? 1.1 - Advantage of Drupal 1.2 - Disadvantage of Drupal 3 - INSTALL DRUPAL 7 4 - MIGRATE DRUPAL 5 - UPDATE DRUPAL
  • 4. Provided by Paulo Amaral - ICT - General Prossecutor's Office 1- WHY DRUPAL • Drupal is a free, open-source web development platform for online content and user communities 1.1 - Advantages of Drupal : Open Source software • Large and vibrant community of users and developers • Many people testing it, finding security issues, etc. • Many modules freely available from developers • Many people donating their time to writing documentation, helping new users, etc. Flexible architecture • You can create your own modules for custom features • You can create your own themes for custom design Based on standards: • Core software is PHP/MySQL, giving many hosting options • Output uses XHTML, CSS, JavaScript, so compatible with most browsers
  • 5. Provided by Paulo Amaral - ICT - General Prossecutor's Office 1- WHY DRUPAL • Drupal is a free, open-source web development platform for online content and user communities 1.2 - Disadvantages of Drupal : Flexibility = Complexity • May not be the best alternative for simple or single-functionality sites • Takes some time to learn • Takes some time to set up Free and Open Source = No guarantees • Free support options may or may not be responsive • Features you need may or may not be available • Your feature requests and bug reports may or may not be acted upon
  • 6. Provided by Paulo Amaral - ICT - General Prossecutor's Office CHECK DRUPAL VERSION Find the version number of your currently installed Drupal core. To do that, look in : # vi /var/www/website/includes/bootstrap.inc /** * The current system version. */ define('VERSION', '7.4'); Using Drush Drupal Shell #drush status
  • 7. Provided by Paulo Amaral - ICT - General Prossecutor's Office INSTALL DRUPAL 7 TRADITIONAL INSTALL 1 - Install Debian 7 2 - Install LAMP 2 - Download DRUPAL 3 - Create the Drupal database 4 - Run the installation script 5 - Configure Use this method if unfamiliar with DRUSH Recomended for begginer sysadmins
  • 8. Provided by Paulo Amaral - ICT - General Prossecutor's Office INSTALL DRUPAL 7 DRUSH INSTALLL 1 - Install Debian 7 2 - Download DRUPAL 3 - Install DRUPAL with DRUSH 4 - Configure DRUSH? • Drush is an awesome shell interface for managing Drupal right from your server command line ( Backup, update and others features ) : Ex : drush status ( verify drupal version , database name and more ).
  • 9. Provided by Paulo Amaral - ICT - General Prossecutor's Office MIGRATE DRUPAL 1 - Prepare old content : Create package with site information . Ex .: tar -czvf filename.tar.gz /var/www /[site ] . Create drupal dump the databases Ex .: mysqldump -u root -p db > db.sql 2 - Copy content to new or new installation server: Copy files generated in the previous step using scp to new server. Ex .: scp *.sql *.tar.gz root@server:/tmp/ 3 - Import database on the new server : Import with the command: mysql -u root -p database < arquivo.sql 4 - Unzip site files in the appropriate directory : filename.tar.gz xzvf tar -C /var/www/ 5 - Test the operation of the site Access the site on the new server and check operation. 6 - Adjustments and corrections, if necessary
  • 10. Provided by Paulo Amaral - ICT - General Prossecutor's Office UPDATE DRUPAL Using Update.php : 1. Put site in Maintenance Mode 2. Backup your site (Files and DB) 3. Delete Core files (Everything except the 'sites" folder) 4. Replace core files with latest version (less the 'sites' folder) 5. Point your browser to "http://example.com/update.php" and follow the instructions Reference for read : http://www.dummies.com/how-to/content/running-drupal-updatephp.html Using DRUSH : 1- Access Drupal website folder : <drupal_root>/modules/update 2 - drush en update 3 - drush up drupal > drush pm-update // for drupal core update > drush pm-update {module-name} // for single module update. https://www.drupal.org/project/drush Simple. :)
  • 11. Provided by Paulo Amaral - ICT - General Prossecutor's Office UPDATE DRUPAL Best method : cd /yourdrupalrootcd /yourdrupalroot wget http://fuerstnet.de/sites/fuerstnet.de/files/patches/drupal-7.wget http://fuerstnet.de/sites/fuerstnet.de/files/patches/drupal-7.xx-to-7.-to-7.xxxx.patch.patch apt-get install patchapt-get install patch patch -p1 --dry-run < PATCHFILEpatch -p1 --dry-run < PATCHFILE patch -p1 < PATCHFILEpatch -p1 < PATCHFILE More information can also be found on : http://fuerstnet.de/en/drupal-upgrade-easier Enjoy :)
  • 12. Provided by Paulo Amaral - ICT - General Prossecutor's Office QUESTIONS ? NEXT STEPS:NEXT STEPS: • ADVANCED TRAININGADVANCED TRAINING • NEW DRUPAL 8 REVIEWNEW DRUPAL 8 REVIEW THANK YOU !THANK YOU !