<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:foaf="https://xmlns.com/foaf/0.1/" xmlns:og="https://ogp.me/ns#" xmlns:rdfs="https://www.w3.org/2000/01/rdf-schema#" xmlns:schema="https://schema.org/" xmlns:sioc="https://rdfs.org/sioc/ns#" xmlns:sioct="https://rdfs.org/sioc/types#" xmlns:skos="https://www.w3.org/2004/02/skos/core#" xmlns:xsd="https://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/tag/wordpress">
  <channel>
    <title>WordPress</title>
    <link>https://www.linuxjournal.com/tag/wordpress</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>nginx and WordPress</title>
  <link>https://www.linuxjournal.com/content/nginx-and-wordpress</link>
  <description>  &lt;div data-history-node-id="1339208" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/12112778334_5b731027e7_z_0.jpg" width="608" height="423" alt="" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/reuven-m-lerner" lang="" about="https://www.linuxjournal.com/users/reuven-m-lerner" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Reuven M. Lerner&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
In &lt;a href="https://www.linuxjournal.com/content/nginx"&gt;my last article&lt;/a&gt;, I took an initial look at nginx, the high-performance
open-source HTTP that uses a single process and a single thread to
service a large number of requests. nginx was designed for speed and
scalability, as opposed to Apache, which was designed to maximize
flexibility and configuration. But through the years, nginx has become
increasingly flexible as well, with a growing number of plugins and
modules that can be used to customize its configuration. Between the
performance, increasingly good documentation and convenience, it's no
wonder nginx has been increasingly popular.
&lt;/p&gt;

&lt;p&gt;
It's also no surprise that WordPress, the open-source blogging and CMS
platform, has become hugely popular. I've heard people say that 10% of
websites are now run using WordPress. Even if that's not precisely
true, there's no doubt that a huge number of sites are powered by
WordPress. I'm a mostly satisfied WordPress user, having converted my
main site and my two ebook sites to it in the past year after years
of using it to power my blog.
&lt;/p&gt;

&lt;p&gt;
So, I thought it would be interesting to demonstrate how easy it
is to set up WordPress with nginx, given the popularity of each of
these systems alone as well as together. In my last article, I described how you
can set up a plain-vanilla PHP system with nginx; WordPress is a bit
more complex, but less than you might think. Starting with a
bare-bones Linux installation, let's walk through the configuration
needed to get WordPress up and running.
&lt;/p&gt;

&lt;h3&gt;
The Basics&lt;/h3&gt;

&lt;p&gt;
In order to install WordPress and nginx together, you're going
to need three basic software systems installed: WordPress, nginx and
MySQL. The first two are pretty obvious, given this article's goal;
the third is a byproduct of using WordPress, which works exclusively
with MySQL.
&lt;/p&gt;

&lt;p&gt;
So, on my Ubuntu Linux machine, I would run the following:

&lt;/p&gt;&lt;pre&gt;
&lt;code&gt;
$ sudo apt-get install mysql-server mysql-client nginx-core
 ↪php5-cli php5-fpm php5-mysql
&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;
This installs a very large number of packages, but it will give you
the core of what you need to get your system up and running. Notice
that you're not installing WordPress here, so that you can install it
manually, using the source code. Indeed, installing WordPress via
&lt;code&gt;apt-get&lt;/code&gt; also means installing Apache; although it's certainly possible to
undo this choice, the benefits of installing WordPress on your own
outweigh those of doing it via a package manager.
&lt;/p&gt;

&lt;p&gt;
You will, as part of this installation, need to choose a password for
your MySQL root user. This is an important part of security on your
system, so do try to use a strong password.
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/nginx-and-wordpress" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 08 Nov 2016 12:13:35 +0000</pubDate>
    <dc:creator>Reuven M. Lerner</dc:creator>
    <guid isPermaLink="false">1339208 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
