From e884735a7347c4437e5c351c1d5f3ca763868ef3 Mon Sep 17 00:00:00 2001 From: Kristal Dale Date: Thu, 27 Sep 2018 13:50:19 -0700 Subject: [PATCH] - Clean up reST formatting - Clean up section headers - Add Next steps section, for consistency Signed-off-by: Kristal Dale --- .../wordpress/web-server-install.rst | 19 +++++++----- .../tutorials/wordpress/wp-install.rst | 30 ++++++++----------- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/source/clear-linux/tutorials/wordpress/web-server-install.rst b/source/clear-linux/tutorials/wordpress/web-server-install.rst index 864ecda1..e3e6aa56 100644 --- a/source/clear-linux/tutorials/wordpress/web-server-install.rst +++ b/source/clear-linux/tutorials/wordpress/web-server-install.rst @@ -1,10 +1,10 @@ .. _web-server-install: Create a |CL-ATTR| based web server -####################################### +################################### -This tutorial shows you how to create a :abbr:`LAMP (Linux, Apache, MySQL, PHP)` server using |CL-ATTR| and how to use -phpMyAdmin\* to manage an associated database. +This tutorial shows you how to create a :abbr:`LAMP (Linux, Apache, MySQL, PHP)` server +using |CL-ATTR| and how to use phpMyAdmin\* to manage an associated database. In order to create a web server using |CL| as the host OS, your host system must be running |CL|. This tutorial assumes you have successfully installed @@ -32,7 +32,7 @@ This tutorial follows these steps: * Install phpMyAdmin and create a database. Install Apache -***************** +************** Apache is an open source HTTP web server application that can run on several operating systems, including |CL|. Go to the `Apache HTTP Server Project`_ @@ -85,7 +85,7 @@ directory. |CL| can overwrite this directory as part of the stateless paradigm. This default :file:`.conf` file includes the following directives that allow for additional locations of configuration definitions: -.. code-block:: bash +.. code-block:: console # Virtual hosts IncludeOptional /usr/share/defaults/httpd/conf.d/*.conf @@ -106,7 +106,7 @@ Open a text editor and perform the following: #. Copy the content listed below into the new file :file:`/etc/httpd/conf.d/httpd.conf`. - .. code-block:: bash + .. code-block:: console # # Set a new location for DocumentRoot @@ -219,7 +219,7 @@ the PHP components and are now ready to add your database application to complete your LAMP server implementation. Install MariaDB -****************** +*************** Install MariaDB to store content. MariaDB is a drop-in replacement for MySQL and is available in the database-basic |CL| bundle. @@ -381,7 +381,7 @@ our |CL| host system. sudo mv phpMyAdmin-4.6.4-english phpMyAdmin Use phpMyAdmin to Manage Databases -==================================== +================================== You can use the phpMyAdmin web-based tool to manage your databases. Follow the steps below for setting up a database called "WordPress". @@ -475,6 +475,9 @@ If successful, you should see the screen shown in figure 8: You have now created a fully functional LAMP server along with a WordPress\*-ready database using |CL|. +Next steps +********** + As a next step, you could :ref:`create a WordPress server ` and present it to the world. diff --git a/source/clear-linux/tutorials/wordpress/wp-install.rst b/source/clear-linux/tutorials/wordpress/wp-install.rst index 831acfd0..2f6a939e 100644 --- a/source/clear-linux/tutorials/wordpress/wp-install.rst +++ b/source/clear-linux/tutorials/wordpress/wp-install.rst @@ -1,7 +1,7 @@ .. _wp-install: Create a |CL-ATTR| WordPress\* server -####################################### +##################################### This tutorial shows you how to install the WordPress\* components on your |CL| :abbr:`LAMP (Linux, Apache, MySQL, PHP)` server. At the end of @@ -10,7 +10,7 @@ phpMyAdmin\* and MariaDB\*. Now that the LAMP server is up and running, you can add the WordPress components needed to host a WordPress website on your system. Before you begin -================= +**************** This tutorial assumes you have successfully installed :ref:`Clear Linux on bare metal` and that you have :ref:`set up a LAMP web server `. @@ -24,7 +24,7 @@ Before you install new packages, update the |CL| OS with the following command: Create a WordPress server -=========================== +************************* WordPress can be installed in a variety of ways. These instructions are written for users who have followed our instructions for installing phpMyAdmin @@ -47,7 +47,7 @@ your site but we strongly encourage you to take action. Download WordPress and manage directories ------------------------------------------- +========================================= For this tutorial, you will create a WordPress blog that can be accessed at: http:///blog. @@ -89,7 +89,7 @@ Follow these steps: sudo rm latest.tar.gz Set up WordPress with Web-based GUI ------------------------------------ +=================================== Recall that you created a database and user when you installed phpMyAdmin during :ref:`Creating a Clear Linux based web server `. Next, you must @@ -118,26 +118,20 @@ The WordPress language option screen appears, as shown in figure 1. #. Click :guilabel:`Let’s go!`. -#. Enter database connection specifics in the screen that appears as shown in figure 3 -below. - +#. Enter database connection specifics in the screen that appears, as shown in figure 3 + below. + * Database name: WordPress - * Database username: wordpressuser - * Database password: wp-example (asterisks will not appear in the text box) - * Database host: localhost - * Table prefix: wp\_ - Figure 3 shows the completed fields: - .. figure:: figures/wp-install-3.png - :alt: Database connection details - :width: 600 + :alt: Database connection details + :width: 600 - `Figure 3: Information necessary for WordPress to connect to the database.` + `Figure 3: Information necessary for WordPress to connect to the database.` #. Click :guilabel:`Submit` to complete the setup. @@ -154,7 +148,7 @@ below. The installer runs until WordPress is fully installed on your system. Complete successful login ---------------------------- +========================= Once the installation is complete, you can name your blog and create a Wordpress username and password. See figure 5.