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 !