Menu

RTCXpression

Close

WordPress Static Site Generator – Installing WordPress Locally

- April 30, 2017

WordPress Static Site Generator The first step in setting up a WordPress static site generator is to install the proper software stack. There are two lists to look at: List of Apache–MySQL–PHP packages and List of Nginx–MySQL–PHP packages (Winginx is missing).

My web server is Ubuntu. My laptop computer is Linux Mint, based on Ubuntu. I installed everything on my laptop like I would on the server. I open a terminal window and sudo su to become root. It’s a lot easier doing it this way than it is to install a “wrapper” for yet another software stack.

The Static Site Generator Version of WordPress

Installing WordPress locally should be very similar to installing it on a server. Even if you use SSL on your server, you won’t need it for the local version. When it comes time to generate your static files, you’ll be changing your host information anyway.

Speaking of hosts, it really doesn’t matter what domain name you use. I use www.rtcx.local to match www.rtcx.net online. You just have to make sure your hosts file has it in there. It’s at /etc/hosts on Linux and c:WindowsSystem32Driversetchosts on Windows.

Recommended Plugins

I’m not going to link to these plugins. If you have WordPress installed correctly, you should be able to get them from the WordPress plugin directory through WordPress itself.

Themes

You can use any theme you want to use. The PHP script I’ll talk about in a future article will alter what needs to be altered.

Don’t use any plugins or widgets that display dynamic content. Many of them won’t work right anyway. If you need “related posts”, I suggest the “Contextual Related Posts” plugin. You won’t need anything related to “recent posts”. I’ll show you how to create an article list that serves that function.

Most of the things you would normally display in a sidebar are practically useless. If you really want a sidebar, use it to display a skyscraper ad or something.

Simplify Everything

Most of your visitors are going to see one page on your website and one page only. A “page” in this context could be a WordPress “post” or a WordPress “page”.

What you want to do is to get your visitors to look at more than one page. Make it as easy as possible for them to find other pages from the page they land on. Even if you don’t like ads, I recommend using Google AdSense if for nothing more than the “matched content” ad units. You can display one ad unit after each article and follow it with a matched content ad unit. The alternative is a “related post” plugin.

Link to your other relevant articles from within a specific article. Don’t overdo it. Once per article is enough.

Articles in this Series

This is a list of all the articles in this series. You should read each article in the order they’re presented. You could miss something important if you skip around.

Share this:

Categories: Technology

Tags: , , , ,

Previous and Next Articles (if any):

« »

More

You've made it this far down the page. Please read some of my more important pages if you have the time:

Comments Policy           Privacy Policy

RTCXpression established Feb 28, 2011
Copyright © 2013-2017 RT Cunningham
Hosted at Digital Ocean