{"id":423,"date":"2024-03-15T07:42:18","date_gmt":"2024-03-15T05:42:18","guid":{"rendered":"https:\/\/raspberrytips.com\/?p=423"},"modified":"2024-10-18T21:59:02","modified_gmt":"2024-10-18T19:59:02","slug":"wordpress-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/raspberrytips.com\/wordpress-on-raspberry-pi\/","title":{"rendered":"How to Install WordPress on your Raspberry Pi (Illustrated)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">WordPress is an excellent tool for managing websites (I know what I&#8217;m talking about, this website runs on WordPress!). It&#8217;s possible to install it on a Raspberry Pi, and I will share the step-by-step guide to install a functional WordPress on your Raspberry Pi from scratch.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Before installing WordPress on a Raspberry Pi, 3 main services are required: Apache (web server), MySQL (database), and PHP (dynamic content). From there, installing WordPress is as simple as extracting the files to the right place and configuring the tool.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ll assume you&#8217;re starting with a blank SD card and give you all the steps to get there. Feel free to use the table of contents if you have already started the process.<\/p>\n\n\n<style>.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap{padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-right:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);padding-left:var(--global-kb-spacing-sm, 1.5rem);background-color:var(--global-palette7, #EDF2F7);box-shadow:0px 0px 14px 0px rgba(0, 0, 0, 0.2);}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title-wrap{padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-contents-title{font-weight:regular;font-style:normal;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-table-of-content-wrap .kb-table-of-content-list{font-size:var(--global-kb-font-size-sm, 0.9rem);font-weight:regular;font-style:normal;margin-top:var(--global-kb-spacing-sm, 1.5rem);margin-right:0px;margin-bottom:0px;margin-left:0px;}.kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-basiccircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-arrowcircle .kb-table-of-contents-icon-trigger:before, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:after, .kb-table-of-content-nav.kb-table-of-content-id19563_c031ec-35 .kb-toggle-icon-style-xclosecircle .kb-table-of-contents-icon-trigger:before{background-color:var(--global-palette7, #EDF2F7);}<\/style>\n\n<p class='ml_begpost' id='ml_begpost_commands'>If you&#8217;re new to Raspberry Pi or Linux, I\u2019ve got something that can help you right away! <br \/><a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'>Download my free Linux commands cheat sheet<\/a> \u2013 it\u2019s a quick reference guide with all the essential commands you\u2019ll need to get things done on your Raspberry Pi. <a rel='noopener' href='https:\/\/raspberrytips.com\/downloads\/?source=begpost&#038;lm=4' target='_blank'><b>Click here to get it for free!<\/b><\/a><\/p>\n\n\n<h2 class=\"wp-block-heading\">Prerequisites to install WordPress on a Raspberry Pi<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing anything on your Raspberry Pi, here are a few tips and requirements to ensure you have everything you need.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Hardware recommendations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>You don&#8217;t need much in terms of hardware: a decent Raspberry Pi model connected to your network should do the trick. <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While any Raspberry Pi will do (especially if you will be the only visitor), <a href=\"https:\/\/raspberrytips.com\/amz\/pi4\" target=\"_blank\" rel=\"noreferrer noopener\">I recommend a Raspberry Pi 4<\/a> or better for this project. WordPress can sometimes be a bit heavy, and loading pages on an old Raspberry Pi model can be quite slow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then get a fresh SD card that you can prepare for the occasion (you can find the <a href=\"https:\/\/raspberrytips.com\/best-sd-card-raspberry-pi\/\" data-type=\"post\" data-id=\"3947\">best SD cards reviewed here<\/a>), and make sure you can connect your Pi to your local network (<a href=\"https:\/\/raspberrytips.com\/raspberry-pi-wifi-setup\/\" data-type=\"post\" data-id=\"2677\">either via Wi-Fi as explained here<\/a>, or <a href=\"https:\/\/raspberrytips.com\/connect-ethernet-raspberry-pi\/\" data-type=\"post\" data-id=\"21459\">with an Ethernet cable<\/a>, which is even better for a server).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On my end, I&#8217;ll be using <a href=\"https:\/\/raspberrytips.com\/amz\/pi5\">my Raspberry Pi 5<\/a> with <a href=\"https:\/\/raspberrytips.com\/amz\/sd\">my favorite SD card<\/a> to test this tutorial for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/raspberrytips.com\/best-raspberry-pi-keyboard\/\" data-type=\"post\" data-id=\"12385\">A good keyboard<\/a>, monitor and mouse can be useful if you use your Raspberry Pi during setup, but I generally use remote access from my computer for this (I&#8217;ll show you how).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Software requirements<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>In terms of operating systems, WordPress and the required services can be installed on basically any Linux distribution. I recommend using a Debian-based system like Raspberry Pi OS or Ubuntu so you can follow the steps exactly as described.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ll be using Raspberry Pi OS Lite for this tutorial, and I recommend you do the same if you&#8217;re starting from scratch. We don&#8217;t need a GUI (graphical user interface), and it will be the best distribution for you to get the most out of your WordPress setup.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need guidance to <a href=\"https:\/\/raspberrytips.com\/install-raspbian-raspberry-pi\/\" data-type=\"post\" data-id=\"587\">install Raspberry Pi OS<\/a>, click the link to read my step-by-step tutorial. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have a computer, I recommend enabling SSH so you can follow this tutorial from the computer and copy\/paste the commands I give you directly to the Raspberry Pi. You can do this in the <a href=\"https:\/\/raspberrytips.com\/raspberry-pi-imager-guide\/\" data-type=\"post\" data-id=\"11264\">OS customization options with Imager<\/a>, or via raspi-config directly once the system is installed:<br><code>sudo raspi-config<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Recommended read:<\/strong> <a href=\"https:\/\/raspberrytips.com\/ssh-guide-raspberry-pi\/\" data-type=\"post\" data-id=\"10748\">Use SSH To Remote Control Your Raspberry Pi: A Complete Guide<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before going further, it&#8217;s best practice to confirm your system is up-to-date. You can run these commands for this:<br><code>sudo apt update<br>sudo apt upgrade<\/code><\/p>\n\n\n\r\n\t\t<!-- wp:paragraph -->\r\n\t<p  id=\"inpost_lm_linux_commands\"><b>Tip: <\/b> Command lines can be a pain to memorize. I put the essential Linux commands on a printable cheat sheet so you don't have to keep googling them.\u00a0You can <a rel=\"noreferrer noopener\" href=\"https:\/\/raspberrytips.com\/downloads\/?source=rb_linux&lm=4\" target=\"_blank\">grab the PDF here<\/a> if you want to save some time.<\/p>\r\n\t<!-- \/wp:paragraph -->\r\n\t\t\n\n\n<h2 class=\"wp-block-heading\">Install the web server (Apache, PHP)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the system is installed (whatever option you choose), the first step is to install a basic web server on your Raspberry Pi. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the main steps for this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Installing Apache to load static pages.<\/strong><\/li>\n\n\n\n<li><strong>Installing PHP to add dynamic page support.<\/strong><\/li>\n\n\n\n<li><strong>Testing that both Apache and PHP are responding properly.<\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s do it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache is the most popular web server on the Internet. Its job is to serve HTML files to visitors, which are then interpreted by web browsers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is how to install Apache with APT on a Debian-based distribution<\/strong>:<br><code>sudo apt install apache2<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"255\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-apache2-1024x255.png\" alt=\"\" class=\"wp-image-24399\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-apache2-1024x255.png 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-apache2-300x75.png 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-apache2-768x191.png 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-apache2.png 1309w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Press &#8220;Y&#8221; or &#8220;Enter&#8221; to start the installation. After a few seconds, the web server should be running on your Raspberry Pi.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/raspberrytips.com\/find-current-ip-raspberry-pi\/\" data-type=\"post\" data-id=\"96\">Get your Raspberry Pi IP address<\/a> if you don&#8217;t have it yet, and try accessing it in your web browser (http:\/\/IP_ADDRESS). You should see the default Apache page, something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"434\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/apache2-default-page-1024x434.png\" alt=\"\" class=\"wp-image-24400\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/apache2-default-page-1024x434.png 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/apache2-default-page-300x127.png 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/apache2-default-page-768x325.png 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/apache2-default-page.png 1053w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The first brick of our server is working (a web server loading static pages), we can now move on and add PHP support to it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install PHP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As a reminder, <strong>PHP is a programming language, designed to create dynamic content<\/strong>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By dynamic content, I mean showing a different page based on different parameters (for example, whether you&#8217;re logged in or not).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PHP is also generally used to interact with a database, but we&#8217;ll see that later. For now, we need to install the PHP support for your Apache web server. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, we need to install another package with APT:<br><code>sudo apt install php<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"296\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-1024x296.png\" alt=\"\" class=\"wp-image-24401\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-1024x296.png 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-300x87.png 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-768x222.png 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php.png 1149w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, it doesn&#8217;t just install the main packages for PHP, there is also a package called &#8220;libapache2-mod-php&#8221; that makes both work together.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Testing PHP support with Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To make sure that PHP is active, we will create a simple PHP file, and check if it&#8217;s loading properly with our web server:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to the web folder, by default it&#8217;s:<br><span style=\"color: var(--global-palette4);\"><code>cd \/var\/www\/html <\/code><\/span><\/li>\n\n\n\n<li>Create and edit a new PHP file in it:<br><span style=\"color: var(--global-palette4);\"><code>sudo nano test.php<\/code><\/span><br>Not familiar with nano? <a href=\"https:\/\/raspberrytips.com\/nano-commands-shortcuts\/\" data-type=\"post\" data-id=\"2524\">Check this article for all the shortcuts and commands<\/a>.<\/li>\n\n\n\n<li>Paste the following PHP code into this file:<br><code><span style=\"color: var(--global-palette4);\">&lt;?php<\/span><br><span style=\"color: var(--global-palette4);\">echo \"Hello World!\";<\/span><br><span style=\"color: var(--global-palette4);\">?&gt;<\/span><\/code><br><img loading=\"lazy\" decoding=\"async\" width=\"297\" height=\"112\" class=\"wp-image-24402\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/hello-world-php.jpg\" alt=\"\"><\/li>\n\n\n\n<li>Save and close (CTRL+O, CTRL+X).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Then go to http:\/\/IP_ADDRESS\/test.php and see what happens.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"179\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/hello-world-ok.jpg\" alt=\"\" class=\"wp-image-24404\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/hello-world-ok.jpg 653w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/hello-world-ok-300x82.jpg 300w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">If you get something similar, it means Apache and PHP are working and you&#8217;re ready to move on. If you see the entire PHP code or nothing at all, it means something is wrong, double-check the previous steps before going any further.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install a database server (MariaDB)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We can now create a website in HTML and PHP. But WordPress needs a little more. It uses a database to store all the posts, pages, and configurations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this, we will install our third service: MariaDB. It&#8217;s a free fork of MySQL, a database server commonly used in this type of setup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing MariaDB on your Raspberry Pi<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To install it, let&#8217;s use APT again:<br><code>sudo apt install mariadb-server<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"333\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb-1024x333.jpg\" alt=\"\" class=\"wp-image-24408\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb-1024x333.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb-300x98.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb-768x250.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb-1536x499.jpg 1536w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-mariadb.jpg 1646w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After a few seconds, all the dependencies and services should be installed and running, but we need a bit of configuration before using it for WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can read my full tutorial on <a href=\"https:\/\/raspberrytips.com\/install-mariadb-raspberry-pi\/\" data-type=\"post\" data-id=\"3265\">configuring a MySQL server on Raspberry Pi<\/a> for the long version, but at the very least we need to create a new database and user for WordPress on the database server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, only the root user has access without a password from their account. So, we will connect to it and <strong>create a new account for WordPress<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to the MySQL CLI: <br><span style=\"color: var(--global-palette4);\"><code>sudo mysql -uroot<\/code><\/span><\/li>\n\n\n\n<li>Create a new user: <br><span style=\"color: var(--global-palette4);\"><code>CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'password';<\/code><\/span><br>You obviously can (and should) replace the username and password with your own credentials. This is just an example.<\/li>\n\n\n\n<li>Create a new database: <br><span style=\"color: var(--global-palette4);\"><code>CREATE DATABASE wordpress;<\/code><\/span><\/li>\n\n\n\n<li>Give WordPress user all privileges on the new database: <br><span style=\"color: var(--global-palette4);\"><code>GRANT ALL ON wordpress.* TO 'wordpress'@'localhost';<\/code><\/span><\/li>\n\n\n\n<li>Quit the MySQL CLI: <br><span style=\"color: var(--global-palette4);\"><code>quit<\/code><\/span><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"846\" height=\"304\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mariadb-create-database.jpg\" alt=\"\" class=\"wp-image-24411\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mariadb-create-database.jpg 846w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mariadb-create-database-300x108.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mariadb-create-database-768x276.jpg 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">PHP MySQL package<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another package we need before going further is the link between PHP and the MySQL server. It will allow PHP code to connect to the database server (required for WordPress).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the command line to install this package with APT:<br><code>sudo apt install php-mysql<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"276\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-mysql.jpg\" alt=\"\" class=\"wp-image-24412\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-mysql.jpg 806w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-mysql-300x103.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/install-php-mysql-768x263.jpg 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ll need to restart the webserver to apply the changes:<br><code>sudo service apache2 restart<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Test<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Again, <strong>let&#8217;s do a quick test to make sure the connection is functional:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Try to connect to MySQL:<br><span style=\"color: var(--global-palette4);\"><code>mysql -u wordpress -p<\/code><\/span><\/li>\n\n\n\n<li>Enter the user password.<\/li>\n\n\n\n<li>Check if the user can view the new database: <br><span style=\"color: var(--global-palette4);\"><code>SHOW DATABASES;<\/code><\/span><\/li>\n\n\n\n<li>Quit: <br><span style=\"color: var(--global-palette4);\"><code>quit<\/code><\/span><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"943\" height=\"465\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mysql-test.jpg\" alt=\"\" class=\"wp-image-24413\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mysql-test.jpg 943w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mysql-test-300x148.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/mysql-test-768x379.jpg 768w\" sizes=\"auto, (max-width: 943px) 100vw, 943px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you see at least the WordPress database, then you can continue and <strong>move to the WordPress installation<\/strong> itself.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Everything is ready to host WordPress now, the hardest part is done. The &#8220;only&#8221; remaining step is to download and extract the WordPress files to the web server directory. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s nothing to install, just a bunch of PHP files to put in the same folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Download WordPress<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>WordPress offers its software in two versions:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A version hosted on their servers, WordPress.com.<\/li>\n\n\n\n<li>A version to download, WordPress.org.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We are not interested in the first version, so go to the right website to download the files.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open the <a data-lasso-id=\"334\" href=\"https:\/\/wordpress.org\/download\/\">official website<\/a>.<br><img loading=\"lazy\" decoding=\"async\" width=\"590\" height=\"286\" class=\"wp-image-24414\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/download-wordpress.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/download-wordpress.jpg 590w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/download-wordpress-300x145.jpg 300w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/li>\n\n\n\n<li>Copy the link (right-click &gt; copy link address).<\/li>\n\n\n\n<li>Use this command to download the archive to the Raspberry Pi:<br><code>sudo wget https:\/\/wordpress.org\/latest.zip -O \/var\/www\/html\/wordpress.zip<\/code><\/li>\n\n\n\n<li>Move to the web folder with:<br><code>cd \/var\/www\/html<\/code><\/li>\n\n\n\n<li>Extract all the files to the current folder:<br><code>sudo unzip wordpress.zip<\/code><br>It will create a new folder, named &#8220;wordpress&#8221;, with all the files in it.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Fix the permissions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>To avoid permission problems with WordPress, and to avoid using the sudo later, we can modify the rights on the WordPress files<\/strong>:<br><code>sudo chmod 755 wordpress -R<br>sudo chown www-data wordpress -R<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>This will give full permissions to Apache, and read\/execution to other users.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With the WordPress code extracted to the webserver&#8217;s main directory, we are now ready to access the configuration wizard. This step will help us:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure the connection to the database.<\/li>\n\n\n\n<li>Create a login for the administration of WordPress.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Access the installation wizard by pointing your browser at http:\/\/IP_ADDRESS\/wordpress:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If asked, select your default language in the list, and click on &#8220;Continue&#8221;.<\/li>\n\n\n\n<li>You should then get a welcome message:<br><img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"718\" class=\"wp-image-24415\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-1.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-1.jpg 976w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-1-300x221.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-1-768x565.jpg 768w\" sizes=\"auto, (max-width: 976px) 100vw, 976px\" \/><br>Click on &#8220;Let&#8217;s go!&#8221; to continue.<\/li>\n\n\n\n<li>Then, fill out the form with your database name and credentials:<br><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"689\" class=\"wp-image-24416\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-2.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-2.jpg 967w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-2-300x214.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-2-768x547.jpg 768w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><br>Click on &#8220;Submit&#8221; to continue.<\/li>\n\n\n\n<li>Then click on &#8220;Run the installation&#8221;:<br><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"371\" class=\"wp-image-24417\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-3.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-3.jpg 960w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-3-300x116.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-3-768x297.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/li>\n\n\n\n<li>On the last screen, you can fill out the website name and create the first user to access the WordPress backend (the administrator account):<br><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"436\" class=\"wp-image-24418\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-4.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-4.jpg 921w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-4-300x142.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-4-768x364.jpg 768w\" sizes=\"auto, (max-width: 921px) 100vw, 921px\" \/><br>Click on &#8220;Install WordPress&#8221; once ready.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If everything works as expected, you should get a success message, with a link to access the WordPress administration page. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The configuration is complete! You can return to the address http:\/\/X.X.X.X\/wordpress to <strong>see your WordPress website live!<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Extra Tips for WordPress<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">WordPress Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I won&#8217;t go into much detail on using WordPress; this is not the goal here.<br>But now that it&#8217;s installed, I will give you two or three tips to get started.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Admin and Front<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress is composed of two parts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Administration:<\/strong> accessible by adding \/wp-admin to the URL and protected with a login and password, it allows you to configure your site and add content.<br><img loading=\"lazy\" decoding=\"async\" width=\"1897\" height=\"735\" class=\"wp-image-24420\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1.jpg 1897w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1-300x116.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1-1024x397.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1-768x298.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/wordpress-backend-1-1536x595.jpg 1536w\" sizes=\"auto, (max-width: 1897px) 100vw, 1897px\" \/><\/li>\n\n\n\n<li><strong>Front:<\/strong> this is the part visible to all visitors.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">When you are logged in, the top bar allows you to switch from one to the other easily.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Appearance<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress comes with a basic design, but it&#8217;s possible to customize your site as you wish.<br>To get started, go to Appearance&gt; Themes.<br>Here you can <strong>add free themes<\/strong> from the list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"420\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/wordpress-themes-1024x420.jpg\" alt=\"\" class=\"wp-image-24422\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/wordpress-themes-1024x420.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/wordpress-themes-300x123.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/wordpress-themes-768x315.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/wordpress-themes.jpg 1341w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the Appearance menu, you can also manage your site menus and widgets.<br>A widget is a block that can be integrated into the sidebar. For example, to display a search engine or an image.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Plugins<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Similar to Raspberry Pi, WordPress provides a scalable foundation.<br>You can install plugins, to add additional features to your website or your admin<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to Plugins &gt; Add new to see a list of all plugins available.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Pages and Posts<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Once your site is personalized, it&#8217;s time to <strong>add content<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For this, you can create two types of content:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pages:<\/strong> These are static pages, which contain content. For example your homepage or a contact form.<\/li>\n\n\n\n<li><strong>Posts:<\/strong> that&#8217;s all the rest of the content, they are grouped into categories to make it easier for users to search later.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You will be able to add your pages and categories to your menus, and the posts will appear automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Services management<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s go back to our services that allow you to run WordPress: Apache, PHP, and MySQL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You need to know that there are commands to start or stop these services.<br>This may be useful in case of a crash, or if you want to stop them to cut access to the site.<br>Here are the commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted EnlighterJSRAW\">sudo service apache2 start | stop | restart | reload\nsudo service mysql start | stop | restart | reload<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As I said above, PHP is a module of Apache, so there is no particular command to manage it.<br>If Apache is running, the PHP pages should be displayed correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more details about the webserver management, I encourage you to read this article: <a href=\"https:\/\/raspberrytips.com\/web-server-setup-on-raspberry-pi\/\" data-type=\"post\" data-id=\"1017\">Set Up a LAMP Web Server On A Raspberry Pi<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Services configuration files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I will also tell you <strong>where to find the configuration files<\/strong> if you ever want or need to make changes:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Apache:<\/strong> \/etc\/apache2<br><strong>PHP:<\/strong> \/etc\/php<br><strong>MySQL:<\/strong> \/etc\/mysql<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In a typical WordPress installation, you normally don&#8217;t need to touch the configuration.<br>But if this article makes you want to try other things, it could be useful.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">PHPMyAdmin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">PHPMyAdmin is a handy tool that you can use on a LAMP installation.<br>This web interface <strong>allows you to access your MySQL databases<\/strong> more intuitively.<br>You will be able to view and modify the data, create users, manage rights and supervise the MySQL server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install it, use the following command:<br><code>sudo apt install phpmyadmin<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Choose apache2 as your web server when asked (press &#8220;Space&#8221; to check the box).<br><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"372\" class=\"wp-image-24425\" style=\"\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/install-phpmyadmin.jpg\" alt=\"\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/install-phpmyadmin.jpg 999w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/install-phpmyadmin-300x112.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/install-phpmyadmin-768x286.jpg 768w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><br>You can skip database configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installation is complete, the interface is available at http:\/\/X.X.X.X\/phpmyadmin.<br>Log in with your WordPress account to see the WordPress database.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"681\" src=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/phpmyadmin-wordpress-1024x681.jpg\" alt=\"\" class=\"wp-image-24426\" srcset=\"https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/phpmyadmin-wordpress-1024x681.jpg 1024w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/phpmyadmin-wordpress-300x199.jpg 300w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/phpmyadmin-wordpress-768x511.jpg 768w, https:\/\/raspberrytips.com\/wp-content\/uploads\/2024\/03\/phpmyadmin-wordpress.jpg 1161w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Share the website on the Internet<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to share this newly created website on the Internet, it&#8217;s not necessarily easy, but it is possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You have to redirect a port from your internet box to port 80 of the Raspberry Pi.<br>It will allow you to connect to the site by using the public IP address of your Internet connection, something like:<br><code>&lt;Public IP&gt;:&lt;PORT&gt; =&gt; &lt;Raspberry Pi IP&gt;:80<\/code><br>That&#8217;s what we call port forwarding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This way, you can access the website with: http:\/\/Y.Y.Y.Y:PORT\/wordpress.<br>Y.Y.Y.Y is your public IP, and PORT is the port you configure on your router.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you do not have a fixed IP address, you can look into dynamic DNS services, which allow you to use a Web address that is constantly updated with your new IP address. <br>This post goes into more detail: <a href=\"https:\/\/raspberrytips.com\/install-no-ip-raspberry-pi\/\" data-type=\"post\" data-id=\"6277\">How to Install and Use No-IP on Raspberry Pi? (Dynamic DNS)<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A VPN can also be a good option, especially if it&#8217;s not a website built for the public. <a href=\"https:\/\/raspberrytips.com\/install-wireguard-raspberry-pi\/\" data-type=\"post\" data-id=\"20019\">WireGuard can be set up on a Raspberry Pi in a few minutes<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">So you learned to <strong>install a LAMP server on Raspberry Pi and to install WordPress<\/strong> to use it.<br>You were also given tips to go further with your installation of WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re finding the above too complex, check out <a href=\"https:\/\/raspberrytips.com\/freedombox-raspberry-pi\/\" data-type=\"link\" data-id=\"https:\/\/raspberrytips.com\/freedombox-raspberry-pi\/\">FreedomBox, an all-in-one server solution<\/a> for Raspberry Pi that lets you install WordPress easily through its graphical menu.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I was pleasantly surprised to see that WordPress works pretty well on Raspberry Pi, while it happens to be rather slow on some professional web hosting. It can be a project idea to think about!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your WordPress site is important, like with real traffic from remote users (not only you), it&#8217;s probably a good idea to put something in place to monitor it. You can read my article on the topic here: <a href=\"https:\/\/raspberrytips.com\/monitor-a-website-on-raspberry-pi\/\" data-type=\"post\" data-id=\"12579\">The Definitive Guide To Monitor A Website On Raspberry Pi<\/a><\/p>\n\n\n<section id=\"end-block-pi\">\r\n<div class=\"rt-community-card \">\r\n\t<div class=\"rt-community-card__inner\">\r\n\r\n\t\t<div class=\"rt-community-card__main\">\r\n\t\t\t<h3 class=\"rt-community-card__headline\">\r\n\t\t\t\tNot getting the same result?\t\t\t<\/h3>\r\n\r\n\t\t\t<p class=\"rt-community-card__description\">\r\n\t\t\t\tEven when you follow every step, small differences in OS version, hardware or config can change the outcome. Instead of wasting time guessing, get help from people who have already fixed the same kind of issue.\t\t\t<\/p>\r\n\r\n\t\t\t<div class=\"rt-community-card__actions\">\r\n\t\t\t\t<a class=\"rt-community-card__button\" href=\"https:\/\/raspberrytips.com\/school\/community\/?coupon=EBCTY\">\r\n\t\t\t\t\t<span>Ask your question now<\/span>\r\n\t\t\t\t\t<span class=\"rt-community-card__button-arrow\">\u2192<\/span>\r\n\t\t\t\t<\/a>\r\n\r\n\t\t\t\t\t\t\t\t\t<div class=\"rt-community-card__small\">\r\n\t\t\t\t\t\t<span class=\"rt-community-card__small-lock\">\ud83d\udd12<\/span>\r\n\t\t\t\t\t\tNo risk. Cancel anytime.\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t<\/div>\r\n\r\n\t\t\t\t\t<div class=\"rt-community-card__side\">\r\n\t\t\t\t<ul class=\"rt-community-card__benefits\">\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Get help on your exact issue<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Access step-by-step videos for tricky setups<\/li>\r\n\t\t\t\t\t\t\t\t\t\t\t<li>Browse the website without ads<\/li>\r\n\t\t\t\t\t\t\t\t\t<\/ul>\r\n\t\t\t<\/div>\r\n\t\t\r\n\t<\/div>\r\n<\/div>\r\n<\/section>\r\n\r\n<style>\r\n.rt-community-card {\r\n\t--rt-bg: #f7f7f9;\r\n\t--rt-border: #e4e4e8;\r\n\t--rt-text: #15171b;\r\n\t--rt-muted: #5b6270;\r\n\t--rt-accent: #C61E4A;\r\n\t--rt-accent-hover: #aa183f;\r\n\t--rt-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);\r\n\r\n\tmargin: 36px 0;\r\n\tcolor: var(--rt-text);\r\n\tfont-family: inherit;\r\n}\r\n\r\n.rt-community-card__inner {\r\n\tdisplay: grid;\r\n\tgrid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.95fr);\r\n\tgap: 34px;\r\n\talign-items: start;\r\n\tbackground: var(--rt-bg);\r\n\tborder: 1px solid var(--rt-border);\r\n\tborder-radius: 22px;\r\n\tpadding: 34px 36px;\r\n\tbox-shadow: var(--rt-shadow);\r\n}\r\n\r\n.rt-community-card__main {\r\n\tmin-width: 0;\r\n}\r\n\r\n.rt-community-card__side {\r\n\tborder-left: 1px solid #e1e1e6;\r\n\tpadding-left: 28px;\r\n}\r\n\r\n.rt-community-card__benefits {\r\n\tmargin: 6px 0 0;\r\n\tpadding: 0;\r\n\tlist-style: none;\r\n\tdisplay: grid;\r\n\tgap: 18px;\r\n}\r\n\r\n.rt-community-card__benefits li {\r\n\tposition: relative;\r\n\tpadding-left: 18px;\r\n\tfont-size: 18px;\r\n\tline-height: 1.55;\r\n\tcolor: var(--rt-text);\r\n}\r\n\r\n.rt-community-card__benefits li::before {\r\n\tcontent: \"\";\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0.72em;\r\n\twidth: 7px;\r\n\theight: 7px;\r\n\tborder-radius: 999px;\r\n\tbackground: var(--rt-accent);\r\n\ttransform: translateY(-50%);\r\n}\r\n\r\n.rt-community-card__actions {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: flex-start;\r\n\tgap: 10px;\r\n\tmargin-top: 30px;\r\n}\r\n\r\n.rt-community-card__button {\r\n\tdisplay: inline-flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tgap: 10px;\r\n\tmin-height: 60px;\r\n\tpadding: 0 28px;\r\n\tborder-radius: 14px;\r\n\tbackground: var(--rt-accent);\r\n\tcolor: #fff !important;\r\n\ttext-decoration: none !important;\r\n\tfont-size: 21px;\r\n\tfont-weight: 700;\r\n\tline-height: 1;\r\n\tbox-shadow: 0 12px 22px rgba(198, 30, 74, 0.22);\r\n\ttransition: background .2s ease, transform .2s ease, box-shadow .2s ease;\r\n}\r\n\r\n.rt-community-card__button:hover {\r\n\tbackground: var(--rt-accent-hover);\r\n\tcolor: #fff !important;\r\n\ttransform: translateY(-1px);\r\n\tbox-shadow: 0 14px 26px rgba(198, 30, 74, 0.28);\r\n}\r\n\r\n.rt-community-card__button-arrow {\r\n\tfont-size: 20px;\r\n\tline-height: 1;\r\n}\r\n\r\n.rt-community-card__small {\r\n\tfont-size: 15px;\r\n\tline-height: 1.5;\r\n\tcolor: #6a717d;\r\n\tpadding-left: 2px;\r\n}\r\n\r\n.rt-community-card__small-lock {\r\n\tmargin-right: 6px;\r\n\tfont-size: 14px;\r\n\tvertical-align: baseline;\r\n}\r\n\r\n\/* Tablet *\/\r\n@media (max-width: 900px) {\r\n\t.rt-community-card {\r\n\t\tmargin: 28px 0;\r\n\t}\r\n\r\n\t.rt-community-card__inner {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 24px;\r\n\t\tpadding: 28px 24px;\r\n\t}\r\n\r\n\t.rt-community-card__side {\r\n\t\tborder-left: 0;\r\n\t\tborder-top: 1px solid #e1e1e6;\r\n\t\tpadding-left: 0;\r\n\t\tpadding-top: 22px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits {\r\n\t\tgrid-template-columns: 1fr;\r\n\t\tgap: 12px;\r\n\t}\r\n}\r\n\r\n\/* Mobile *\/\r\n@media (max-width: 640px) {\r\n\t.rt-community-card__inner {\r\n\t\tpadding: 22px 18px;\r\n\t\tborder-radius: 18px;\r\n\t\tgap: 20px;\r\n\t}\r\n\t\r\n\t.rt-community-card__side {\r\n\t\tpadding-top: 18px;\r\n\t}\r\n\r\n\t.rt-community-card__benefits li {\r\n\t\tfont-size: 16px;\r\n\t}\r\n\r\n\t.rt-community-card__actions {\r\n\t\tmargin-top: 24px;\r\n\t\talign-items: stretch;\r\n\t}\r\n\r\n\t.rt-community-card__button {\r\n\t\twidth: 100%;\r\n\t\tmin-height: 56px;\r\n\t\tfont-size: 18px;\r\n\t\tpadding: 0 20px;\r\n\t}\r\n\r\n\t.rt-community-card__small {\r\n\t\ttext-align: center;\r\n\t\tpadding-left: 0;\r\n\t}\r\n}\r\n<\/style>\r\n\t\r\n","protected":false},"excerpt":{"rendered":"<p>WordPress is an excellent tool for managing websites (I know what I&#8217;m talking about, this website runs on WordPress!). It&#8217;s possible to install it on a Raspberry Pi, and I will share the step-by-step guide to install a functional WordPress on your Raspberry Pi from scratch. Before installing WordPress on a Raspberry Pi, 3 main&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8210,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-tutorials"],"taxonomy_info":{"category":[{"value":2,"label":"How-To Tutorials"}]},"featured_image_src_large":["https:\/\/raspberrytips.com\/wp-content\/uploads\/2018\/08\/install-wordpress-raspberry-pi-1024x683.jpg",1024,683,true],"author_info":{"display_name":"Patrick Fromaget","author_link":"https:\/\/raspberrytips.com\/author\/admin\/"},"comment_info":20,"category_info":[{"term_id":2,"name":"How-To Tutorials","slug":"how-to-tutorials","term_group":0,"term_taxonomy_id":2,"taxonomy":"category","description":"","parent":0,"count":228,"filter":"raw","cat_ID":2,"category_count":228,"category_description":"","cat_name":"How-To Tutorials","category_nicename":"how-to-tutorials","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":31,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":33469,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/posts\/423\/revisions\/33469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media\/8210"}],"wp:attachment":[{"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberrytips.com\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}