Your SlideShare is downloading. ×
Introduction to Drupal 7 - Launching your Drupal 7 website online
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Introduction to Drupal 7 - Launching your Drupal 7 website online

1,552
views

Published on

Presentation tutorial on launching your Drupal website online.

Presentation tutorial on launching your Drupal website online.

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,552
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
39
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Introduction to Drupal 7 Session 8.2 Launching your Drupal 7 websiteDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 1
  • 2. Agenda• Choosing a hosting provider• What do you need to transfer• Migrating your system files• Migrating your database• Change your settings.php file• TroubleshootingDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 2
  • 3. Choosing your hosting• Drupal system requirements: – Disk space: 15MB – Web server: Apache 1.3, Apache 2.x – Database server - MySQL: MySQL 5.0.15 or higher with PDO, SQLite 3.3.7 or higher – PHP: 5.2.5 or higher (5.3 recommended)• Therefore, shared hosting is ok• Recommended hosting in Bulgaria: http://superhosting.bgDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3
  • 4. What you transfer during migration• Your website files: – Drupal core: all files except the ‘sites’ folder – Your modules set: sites/all/modules – Your themes set: sites/all/themes – Your library set: sites/all/libraries – Your website files: sites/default/files• Your website database – phpmyadmin export way – Backup and migrate module way – Any other if you are masterDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4
  • 5. FileZilla• Free and open source FTP client for files management;• Free download: http://filezilla-project.org/Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5
  • 6. Transferring website files• If you’re using the XAMPP configuration, your website files should be located at: C:xampphtdocscorporate• In most cases, your hosting provider will have 2 folders where you can upload your files to be accessible from the web: – public_html folder – www shortcut folder• If you’re uploading your website to be on main domain, then transfer should be of contents of corporate directly to the public_html folderDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6
  • 7. How does it look likeDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7
  • 8. Exporting your local database• Export your local database – Enter the phpmyadmin control panel – Select the database you’d like to export – Use the Export tab on top – Keep the SQL type of export – Select gzipped compression levelDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8
  • 9. Exporting your local databaseDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
  • 10. Creating a database and a user• Log in to your cpanel account;• Go to Databases section and enter the MySQL databases;• Create a database where you’ll import your local database copy;• Create a new user who is going to work with the database you just created;• Make sure you assign the new user to the same database and that the user has all privileges on the database;Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10
  • 11. Importing the database• Go to Databases section and enter phpMyAdmin screen;• Go to the database you created for your project;• Go to Import tab;• Browse and select your local database dump;• Click Go and import it;Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 11
  • 12. Importing the databaseDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 12
  • 13. Changing your settings.php file• settings.php holds information for your files and database configurations settings;• Go to sites/default/settings.php and edit• Make sure you have edit permissions• Change lines 185 – 187 to reflect your new user and database configurationsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 13
  • 14. Troubleshooting• Frequently seen problems: – Your hosting gives you PHP4 by default, and you need to enable PHP5 first (host.bg issue); – You haven’t granted the required privileges on your user to operate on the database; – Your changes on settings.php does not go through – make sure you’ve set permissions on the settings.php file first; – Your database is too big to import: you can use bigdump.php approach; – Migrated website has broken images: either go through the images and change paths or check the settings in your configuration options; – Your remote server does not let me use the same URLs are on my local machine: most probably the hosting does not let you have mod rewrite by default, so you either need to do magic or twist arms (space.bg issue);Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 14
  • 15. Time for questionsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 15
  • 16. ContactsKalin Chernev – E: kalata@shtrak.eu – T: twitter.com/kalinchernev – U: http://shtrak.eu/kalataDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 16