COAP:COAP-3110/week6: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=== Week 6 learning goals === * Migrating from a development server to a hosting company * The REST protocol == Monday == In order to migrate you will have to: * copy all...") |
m (→Monday) |
||
Line 17: | Line 17: | ||
* Edit config.php, the replace your original wp-config.php file by this new version | * Edit config.php, the replace your original wp-config.php file by this new version | ||
Example: | Example taken from 000webhost.com: | ||
as you can see the hosting organization may force you to adopt some prefix, i.e. the <code>a3966289</code> would represent your user id. | |||
<source lang="php"> | |||
define('DB_NAME', 'a3966289_w'); | |||
/** MySQL database username */ | |||
define('DB_USER', 'a3966289_user'); | |||
/** MySQL database password */ | |||
define('DB_PASSWORD', 'XXXXXXXX'); | |||
/** MySQL hostname */ | |||
define('DB_HOST', 'mysql5.000webhost.com'); | |||
</source> |
Revision as of 16:55, 13 September 2016
Week 6 learning goals
- Migrating from a development server to a hosting company
- The REST protocol
Monday
In order to migrate you will have to:
- copy all the WordPress files using an FTP or SFTP client or a WebClient (depending on the hosting company)
- dump the whole database to a *.zip file
- Create a copy of the
wp-config.php
file and edit some settings
On the new host
- Create a new database
- Write down its full name, database user name, database user password, machine name
- Edit config.php, the replace your original wp-config.php file by this new version
Example taken from 000webhost.com:
as you can see the hosting organization may force you to adopt some prefix, i.e. the a3966289
would represent your user id.
define('DB_NAME', 'a3966289_w');
/** MySQL database username */
define('DB_USER', 'a3966289_user');
/** MySQL database password */
define('DB_PASSWORD', 'XXXXXXXX');
/** MySQL hostname */
define('DB_HOST', 'mysql5.000webhost.com');