Week Two Exercises (MGDP2060)

From Wiki @ Karl Jones dot com
Revision as of 19:40, 31 August 2016 by Karl Jones (Talk | contribs) (Synchronize files)

Jump to: navigation, search

This article contains exercises for Week Two of Web Design and Development III (MGDP2060).

For examples and more details, see WordPress subfolder installation.

Create folders for your work

On your laptop computer or classroom workstation, select a folder where you want to store your work for this class. Alternately, create a new folder (with a name of your choice) for this purpose. This is the base folder.

The base folder varies from student to student, depending upon how you organize your files and folders. For example, you may already have a folder named "HTC" where you store your school work. Or you may have a folder named "MGDP2060" on your desktop or elsewhere for this purpose.

Inside the base folder, create a folder with two subfolders as shown below:

SUBDOMAIN.x10host.com
     public_ftp
     public_html

Replace "SUBDOMAIN" with your x10host subdomain.

Create index.php

In the public_html folder, create a document named index.php.

Enter the following PHP code:

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . 'wp/wp-blog-header.php' );

Upload index.php to web server

Use FTP to upload index.php to your web server.

Remember, index.php goes in the public_html folder (both local and remote).

When working with FTP, be careful to synchronize your local and remote folders: upload from local folder public_html to remote folder public_html.

Update Site Address (URL)

In your WordPress control panel, in the Settings page, find the Site Address (URL) field and remove the subfolder from the URL.

Browse website root

Browse the root of your website. Confirm that WordPress displays correctly. Test various links, confirm that navigation works correctly.

For next week

Synchronize files

Keep your local and remove files in sync. Use FTP to download:

Reading

Read "Part Two: Building a WordPress Blog" (chapters four through eight).