Set up a localhost Web Server for Faster Website Development
4.8 (18 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
72 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Set up a localhost Web Server for Faster Website Development to your Wishlist.

Add to Wishlist

Set up a localhost Web Server for Faster Website Development

Install and configure a web development environment on your computer. Code faster and when offline. Install WordPress.
4.8 (18 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
72 students enrolled
Created by Dave Hollingworth
Last updated 7/2017
English
Current price: $10 Original price: $30 Discount: 67% off
5 hours left at this price!
30-Day Money-Back Guarantee
Includes:
  • 1.5 hours on-demand video
  • 1 Article
  • 11 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Install and configure a local web server on your computer
  • Learn why it's faster and easier to develop websites on a local web server
  • Develop multiple websites in virtual servers instead of in subfolders
  • Develop websites without an internet connection
  • Use phpMyAdmin to create a local database and configure access to it
  • Configure the Apache web server using .htaccess files
  • Install WordPress
View Curriculum
Requirements
  • You should be comfortable installing software on your computer
  • Although you don't need to know HTML, you should be familiar with the basic concepts of how websites work
  • You should be comfortable editing text files
Description

Install and configure a web server on your computer so you can develop websites faster and more easily.

Quickly set up all the Software you need to Develop Websites Locally in this comprehensive course.

  • Install a web server, PHP, database server and phpMyAdmin
  • Learn how web addresses work and how to use them locally
  • Develop multiple websites in the root instead of in subfolders
  • Learn how to configure Apache using .htaccess files
  • Create a new local database
  • Install WordPress

Set up your Computer for Faster and Easier Web Development

Developing websites is easier and faster if you do it locally, using a web server installed on your computer. All web developers develop locally first, before copying their work to a live web server.

By installing and configuring a local web development environment, you'll be able to create your website more quickly and even work when offline.

You'll also learn how to develop multiple websites on the same web server, each in the root instead of creating each one in a subfolder.

Content and Overview

Suitable for web developers of all levels, this course will take you through all the steps required to install and configure a complete web development environment on your computer.

This short course will get you up and running quickly. Starting with the basic concepts, first you'll install the necessary software, then start configuring it for the best results. You'll learn how to configure the web server so that you can develop multiple websites alongside each other, instead of all in one folder.

Where necessary, different videos for Windows, Mac and Linux are provided so that you can get the most out of the course whatever platform you use.

You'll learn how to set up a website with a local web address, configure the web server using special files called .htaccess files, create and grant access to a database, and also install WordPress locally if you need it.

At the end of this course, you'll have a fully working web development environment on your computer, ready to start creating your own websites.

What else will you get?

  • All code and resources shown in the videos
  • Work alongside the instructor
  • A verifiable certificate of completion upon finishing the course
  • Access to the instructor at all times to ask for help with any topic related to the course
  • One year's FREE web hosting
Who is the target audience?
  • Anyone who is developing a website or web application
  • Anyone who wants to know how to develop websites faster and more easily
  • Experienced web developers who want to know how to use virtual hosts instead of developing each site in a subfolder
Students Who Viewed This Course Also Viewed
Curriculum For This Course
31 Lectures
01:17:10
+
Introduction
2 Lectures 05:24

Welcome to the course!

In this lecture we'll look at:

  • A summary of what you're going to learn throughout the course.
  • How to get the most out of the course: installing the software yourself, where to find resources and how to get help.
Preview 02:10

In this lecture you'll learn:

  • what a website is
  • what developing a website consists of
  • how you make it available to people
  • the advantages of installing a web server on your computer to develop your website locally
Preview 03:14
+
Install web server software
5 Lectures 12:53

In this lecture we'll cover exactly what software you need to install so you can develop websites locally, on your computer. We'll choose a package that installs all you need in one go:

  • web server
  • PHP
  • database server
  • phpMyAdmin
Preview 02:15

In this lecture I'll take you through every step the installation process for installing XAMPP, starting from downloading the installation file to running the software.

This lecture is specifically for computers running Microsoft Windows. Equivalent lectures for Apple Mac and Linux follow.

Install XAMPP (Windows)
03:06

In this lecture I'll take you through every step the installation process for installing XAMPP, starting from downloading the installation file to running the software.

This lecture is specifically for computers running Apple Mac OSX. Equivalent lectures for Microsoft Windows and Linux are available in this section.

Install XAMPP (OSX)
02:34

In this lecture I'll take you through every step the installation process for installing XAMPP, starting from downloading the installation file to running the software.

This lecture is specifically for computers running Linux. Equivalent lectures for Microsoft Windows and Apple Mac OSX are available in this section.

Install XAMPP (Linux)
03:04

When you're writing code, you'll need a text editor. In this lecture we'll look at what comes as standard with your computer, and recommend a better, free alternative.

Install a code editor
01:54
+
Develop websites in the web server's root directory
3 Lectures 07:16

In this lecture you'll learn what a web server's root directory is, and how to find it in the XAMPP software you just installed.

Find the web server's root directory
02:05

In this lecture we'll look at how to develop one website locally, in the web server's root directory.

The HTML source code shown is available to download in the resources section of this video.

Develop one website in the web server root
02:27

In this lecture I'll show you how to develop multiple websites using subfolders of the web server's root directory.

We'll also learn how this can be a problem when copying your site live to a live web server on the internet, as the structure of internal links might change.

The HTML source code shown is available to download in the resources section of this video.

Preview 02:44
+
Web addresses: the Domain Name System and the hosts file
2 Lectures 06:15

In this lecture you'll learn how user-friendly web addresses like www.example.com are converted into numbers so that your web browser can find and display a website - this is called the Domain Name System.

Use easy-to-remember web addresses: an overview of the Domain Name System
03:22

In this lecture you'll learn how to add web addresses to your local computer's equivalent of DNS, the hosts file.

The hosts file: add your own web addresses locally
02:53

Test your knowledge of the material covered in this section.

Web addresses
3 questions
+
Use virtual hosts when developing multiple websites on the same server
11 Lectures 26:26

In this lecture we'll revisit why developing several websites locally in subfolders can be a problem, and how to solve it - configuring the web server so it has several virtual web servers inside the one web server, commonly known as virtual hosts. We'll also see an overview of what you need to do to set up a virtual host.

Preview 02:13

In this lecture you'll learn how to choose a web address for a virtual host. We'll see exactly what the standard says, what is commonly used, and what is recommended.

Choose a local web address for the virtual host
01:54

In this lecture we'll start adding a virtual host by first creating a web address for our site. We'll do this in the hosts file. 

This lecture contains specific instructions for Microsoft Windows. Instructions for other operating systems are alongside this video.

Add a web address to the hosts file (Windows)
01:37

In this lecture we'll start adding a virtual host by first creating a web address for our site. We'll do this in the hosts file. 

This lecture contains specific instructions for Apple Mac OSX. Instructions for other operating systems are alongside this video

Add a web address to the hosts file (OSX)
01:31

In this lecture we'll start adding a virtual host by first creating a web address for our site. We'll do this in the hosts file. 

This lecture contains specific instructions for Linux. Instructions for other operating systems are alongside this video

Add a web address to the hosts file (Linux)
01:23

In this lecture we'll continue to add a virtual host to the web server that we have installed locally by adding a virtual host to the web server's configuration files.

This lecture contains specific instructions for Microsoft Windows. Instructions for other operating systems are alongside this video.

Add a new virtual host (Windows)
02:22

In this lecture we'll continue to add a virtual host to the web server that we have installed locally by adding a virtual host to the web server's configuration files.

This lecture contains specific instructions for Apple Mac OSX. Instructions for other operating systems are alongside this video

Add a new virtual host (OSX)
02:53

In this lecture we'll continue to add a virtual host to the web server that we have installed locally by adding a virtual host to the web server's configuration files.

This lecture contains specific instructions for Linux. Instructions for other operating systems are alongside this video

Add a new virtual host (Linux)
03:00

In this lecture we'll learn how to use a web address in DNS for the virtual host, as opposed to a web address in the hosts file.

We'll see some existing domains that we can use, and how to add one to DNS yourself.

Use a web address in DNS for the local web server
02:41

In this lecture we'll add a new virtual host with a web address in DNS instead of in the hosts file.

Add a new virtual host with a DNS web address
02:44

In this lecture we'll see how to get the folder for the virtual host's root directory directly from the web address

For example:

site1.localhost.tv would automatically get its content from a folder called site1;

site2.localhost.tv from a folder called site2, and so on.

We'll add a virtual host that does this, and several example sites that all work from one virtual host configuration.

Virtual document roots: Get the document root from the web address
04:08

Test your knowledge of the material covered in this section.

Virtual hosts
3 questions
+
Configuring Apache using .htaccess files
3 Lectures 06:55

In this lecture you'll learn how the Apache web server can be configured even if you don't have access to the configuration files, something which is common on shared hosting.

Configure Apache using .htaccess files
02:22

In this lecture you'll learn how to enable .htaccess files in a virtual host, which are disabled by default.

Enable .htaccess files in the virtual host configuration
01:31

In this lecture we'll look at some common uses for .htaccess files, where to get ready-made code for these common tasks, and we'll see an example of how to use an .htaccess file in one of our virtual hosts.

Using .htaccess files: common usage and an example
03:02
+
Local databases
2 Lectures 03:25

In this lecture I'll introduce you to phpMyAdmin, the tool we use for administering databases in XAMPP. You'll learn how to access it, and we'll also create a new database.

Local databases: Access phpMyAdmin and create a new database
02:01

Before you can access a database from code, for example from PHP, you need a user account that has access to the database. In this lecture we'll add a new database user and grant it access to the database we just created.

Add a new user account and grant access to a database
01:24
+
Conclusion and examples: install WordPress locally
3 Lectures 08:37

WordPress is a very popular content management system, for creating websites, blogs, and so on. In this video we're going to install it to our local web server, following these steps:

  1. download the WordPress software
  2. extract it to a folder on our hard drive
  3. create a local database and user
  4. run the installation program
  5. create a new WordPress user
  6. view our new local WordPress site
Install WordPress locally
06:01

Congratulations on finishing the course!

In this lecture we'll look at a brief overview of what you've achieved, and where to go from here:

  • the simple steps to take when starting a new local website
  • look out for updates to the course;
  • please contact me if you need help
Conclusion
02:15

Bonus Lecture: 1 year's FREE web hosting
00:21
About the Instructor
Dave Hollingworth
4.7 Average rating
755 Reviews
3,604 Students
7 Courses
IT Trainer

Hi, I'm Dave Hollingworth. I'm an IT trainer and web application developer. I've been programming for over twenty-five years, and teaching IT since 1999.

I've developed enterprise-level applications on platforms ranging from mainframes to mobiles: from my first web application, a quotes system created for a major insurance company back in 1999 - the first of its type in the sector - to interactive learning management systems for online language learning.

I've taught courses ranging from basic use of email to advanced web application development, both online and in-person. I've been teaching on Udemy since 2012.

I'm passionate about technology, and love teaching it! I believe it's possible to explain even the most complex subjects in a simple, straightforward way that doesn't confuse the student.

I look forward to welcoming you onto one of my courses!