16
Introduction to Drupal 7 Session 8.2 Launching your Drupal 7 website 1 Course by Init Lab (http://initlab.org) Drupalist: Kalin Chernev

Introduction to Drupal 7 - Launching your Drupal 7 website online

Embed Size (px)

DESCRIPTION

Presentation tutorial on launching your Drupal website online.

Citation preview

Page 1: Introduction to Drupal 7 - Launching your Drupal 7 website online

Introduction to Drupal 7

Session 8.2

Launching your Drupal 7 website

1 Course by Init Lab (http://initlab.org) Drupalist: Kalin Chernev

Page 2: Introduction to Drupal 7 - Launching your Drupal 7 website online

Agenda

• Choosing a hosting provider

• What do you need to transfer

• Migrating your system files

• Migrating your database

• Change your settings.php file

• Troubleshooting

2 Course by Init Lab (http://initlab.org) Drupalist: Kalin Chernev

Page 3: Introduction to Drupal 7 - Launching your Drupal 7 website online

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.bg

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3

Page 4: Introduction to Drupal 7 - Launching your Drupal 7 website online

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 master

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4

Page 5: Introduction to Drupal 7 - Launching your Drupal 7 website online

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

Page 6: Introduction to Drupal 7 - Launching your Drupal 7 website online

Transferring website files

• If you’re using the XAMPP configuration, your website files should be located at: C:\xampp\htdocs\corporate

• 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 folder

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6

Page 7: Introduction to Drupal 7 - Launching your Drupal 7 website online

How does it look like

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7

Page 8: Introduction to Drupal 7 - Launching your Drupal 7 website online

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 level

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8

Page 9: Introduction to Drupal 7 - Launching your Drupal 7 website online

Exporting your local database

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9

Page 10: Introduction to Drupal 7 - Launching your Drupal 7 website online

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

Page 11: Introduction to Drupal 7 - Launching your Drupal 7 website online

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

Page 12: Introduction to Drupal 7 - Launching your Drupal 7 website online

Importing the database

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 12

Page 13: Introduction to Drupal 7 - Launching your Drupal 7 website online

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 configurations

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 13

Page 14: Introduction to Drupal 7 - Launching your Drupal 7 website online

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

Page 15: Introduction to Drupal 7 - Launching your Drupal 7 website online

Time for questions

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 15

Page 16: Introduction to Drupal 7 - Launching your Drupal 7 website online

Contacts

Kalin Chernev

– E: [email protected]

– T: twitter.com/kalinchernev

– U: http://shtrak.eu/kalata

Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 16