WordPress on OpenMediaVault using Docker and Portainer Raspberry Pi

In this segment, we are going to explain “How to install WordPress on OpenMediaVault using Docker and Portainer for Raspberry Pi all models “

WordPress requires MariaDB/MySQL

To begin the setup first we need to install MariaDB and then we can go ahead and install WordPress.

What is OpenMediaVault?

OpenMediaVault (OMV) is a free Linux distribution designed for network-attached storage (NAS). The project’s lead developer is Volker Theile, who instituted it in 2009. OMV is based on the Debian operating system and is licensed through the GNU General Public License v3.

Source /> Wikipedia

Old OpenMediaVault Versions :

Latest OpenMediaVault 5 Installation Guide : 

https://pcmac.biz/openmediavault-5-on-raspberry-pi/

Software Required

Equipment Required Optional
Raspberry Pi Raspberry Pi 4 Case
SD_Card SD Card Keyboard
Ethernet Ethernet Cable Mouse
Charger Power Adapter    
HDD External HDD    
Buy Now

You can Buy Raspberry Pi 4 Kit from here

 

What is MariaDB?

mariadb

MariaDB is a community-developed, commercially supported fork of the MySQL relational database management system (RDBMS), intended to remain free and open-source software under the GNU General Public License. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation in 2009.

Source // Wikipedia

Pull MariaDB through Command

  • We can use the command line to pull MariaDB, by login to SSH and use the below-given command to download the image.

sudo docker pull mariadb

Credit to Linux Server

sudo docker pull linuxserver/mariadb

  • If the first command doesn’t work, you can always use the second one to download the image.
  • Once, the image is successfully downloaded, we can go ahead and start configuring the container.

Container Configuration

  • First of all, we need to navigate to containers and click on add container.
  • Now, we need to type a name for our container and select the image in the next section.
  • After that, we need to concentrate on 3 things only i.e Volume, Environment, and Restart Policy.

The Default Port for MariaDB is 3306, you can always bind the port with some other port according to our requirement or if the port is already in use.

mariadbClick to Zoom

  1. In the volume section, we need to configure one path for the config folder and bind this folder to our desired path.

MariaDBClick to Zoom

  • After that we need to configure Environment Variables as mentioned below in the picture.

Environment variables

TZ
PUID
PGID
MYSQL_ROOT_PASSWORD
MYSQL_DATABASE
MYSQL_USER
MYSQL_PASSWORD

mariadbClick to Zoom

  • In this section we need to select unless stopped.

MariaDBClick to Zoom

  • Once all the settings configured correctly we can go ahead and Deploy the container.

What is WordPress?

WordPress is a free and open-source content management system (CMS) written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.  

wordpress

It was originally created as a blog-publishing system but has evolved to support other types of web content including more traditional mailing lists and forums, media galleries, membership sites, learning management systems (LMS), and online stores. WordPress is used by more than 60 million websites, including 33.6% of the top 10 million websites as of April 2019, WordPress is one of the most popular content management system solutions in use. WordPress has also been used for other application domains such as pervasive display systems (PDS). 

WordPress pull through the command line

docker pull wordpress

Container Configuration

  • For WordPress, we need to navigate to containers and click on add container.
  • Now, we need to type a name for our container and select the image in the next section.
  • After that, we need to concentrate on 3 things only i.e Volume, Environment, and Restart Policy.

The Default Port for Wordpress is 80, you can always bind the port with some other port according to our requirement or if the port is already in use.

wordpress01Click to Zoom

  • In the volume section, we need to configure one path for the config folder and bind this folder to our desired path.

Container Path

/var/www/html

wordpress

Click to Zoom

  • After that we need to configure Environment Variables as mentioned below in the picture.

Environment Variables

WORDPRESS_DB_HOST
WORDPRESS_DB_USER
WORDPRESS_DB_PASSWORD
WORDPRESS_DB_NAME

wordpress

Click to Zoom

  • In this section we need to select unless stopped.

wordpressClick to Zoom

  • Once, the setup finishes, we can access our WordPress on HTTP://Omv_IP_Address:Wordpress_Port_Number, for example in my case HTTP://192.168.1.34:8090.
  • If everything goes well you will see the below setup screen to configure your WordPress.

wordpress

  • Now, either you can follow the online instruction or you can follow our video from the top.

In conclusion

  • You are all set to use WordPress with OpenMediaVault on Raspberry Pi.
  • Please share your valuable feedback about the article.

Need to go through Posts

Did you find us helpful?

Subscribe our YouTube Channel
Like us on Facebook facebook
Support us on Patreon Patreon
Share This Article with others

Harish Kumar

As a founder of the PcMac YouTube channel and website, Our goal is to provide Free Technical help to people and spread knowledge to everyone.
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments