Skip to content

Commit 4205ea0

Browse files
Wordpress fix
1 parent 962eaa1 commit 4205ea0

File tree

1 file changed

+19
-19
lines changed
  • content/hardware/04.pro/boards/portenta-x8/tutorials/wordpress-webserver

1 file changed

+19
-19
lines changed

content/hardware/04.pro/boards/portenta-x8/tutorials/wordpress-webserver/content.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'Running Wordpress and Database Containers on the Portenta X8'
3-
description: 'Learn how to run a database and wordpress container on the Portenta X8'
3+
description: 'Learn how to run a database and Wordpress container on the Portenta X8'
44
difficulty: beginner
55
tags:
66
- containers
@@ -16,7 +16,7 @@ hardware:
1616

1717
## Overview
1818

19-
The Arduino Portenta X8 is a powerful board that has many features that can be easily utilized with the help of Docker containers. In this tutorial we will be using the Portenta X8 to host a webserver and run wordpress using containers. This is a simple way to configure and run your own webserver and wordpress page. We can then access the wordpress site on the X8 through our web browser and begin setting it up.
19+
The Arduino Portenta X8 is a powerful board that has many features that can be easily utilized with the help of Docker containers. In this tutorial we will be using the Portenta X8 to host a webserver and run Wordpress using containers. This is a simple way to configure and run your own webserver and Wordpress page. We can then access the Wordpress site on the X8 through our web browser and begin setting it up.
2020

2121
## Goals
2222

@@ -52,39 +52,39 @@ services:
5252
environment:
5353
- PUID=1000
5454
- PGID=1000
55-
- MYSQL_ROOT_PASSWORD=wordpress
55+
- MYSQL_ROOT_PASSWORD=Wordpress
5656
- TZ=Europe/London
57-
- MYSQL_DATABASE=wordpress
58-
- MYSQL_USER=wordpress
59-
- MYSQL_PASSWORD=wordpress
57+
- MYSQL_DATABASE=Wordpress
58+
- MYSQL_USER=Wordpress
59+
- MYSQL_PASSWORD=Wordpress
6060
volumes:
6161
- db_data:/var/lib/mysql
6262
restart: unless-stopped
6363
64-
wordpress:
64+
Wordpress:
6565
depends_on:
6666
- db
67-
image: wordpress:latest
67+
image: Wordpress:latest
6868
volumes:
69-
- wordpress_data:/var/www/html
69+
- Wordpress_data:/var/www/html
7070
ports:
7171
- "8000:80"
7272
restart: always
7373
environment:
74-
WORDPRESS_DB_HOST: db
75-
WORDPRESS_DB_USER: wordpress
76-
WORDPRESS_DB_PASSWORD: wordpress
77-
WORDPRESS_DB_NAME: wordpress
74+
Wordpress_DB_HOST: db
75+
Wordpress_DB_USER: Wordpress
76+
Wordpress_DB_PASSWORD: Wordpress
77+
Wordpress_DB_NAME: Wordpress
7878
volumes:
79-
wordpress_data: {}
79+
Wordpress_data: {}
8080
db_data: {}
8181
```
8282

8383
Now lets create a directory on our X8 and put this **docker-compose.yml** file on our device.
8484

8585
### Installing The Containers
8686

87-
First we create a directory where we want put our **docker-compose.yml** file. Using the `mkdir` command we will create a directory named wordpress-test. Navigate into this directory with a simple `cd` command. Either copy the docker-compose.yml file into this directory or create it directly here.
87+
First we create a directory where we want put our **docker-compose.yml** file. Using the `mkdir` command we will create a directory named "wordpress-test". Navigate into this directory with a simple `cd` command. Either copy the docker-compose.yml file into this directory or create it directly here.
8888

8989
![cd into correct directory](assets/webserver-mkdir.png)
9090

@@ -96,25 +96,25 @@ When you are in the correct directory and no other container is running on the p
9696

9797
### Connecting to the Wordpress Site
9898

99-
To connect to the Wordpress setup site we simply need to access it with our Portenta X8s unique id and port. So for example `http://<uuid>.local:<port>`, where you would substitute the `<uuid>` with your Portenta X8s unique id and the port chosen for the wordpress container with `<port>`. The `<uuid>` can be found on the setup page that is showed in the [Getting started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box), you can also see it in the terminal when running `adb`. Or you can go to `http://192.168.7.1:8000` if you use Windows and Linux, on MacOS use `http://192.168.8.1:8000`.
99+
To connect to the Wordpress setup site we simply need to access it with our Portenta X8s unique id and port. So for example `http://<uuid>.local:<port>`, where you would substitute the `<uuid>` with your Portenta X8s unique id and the port chosen for the Wordpress container with `<port>`. The `<uuid>` can be found on the setup page that is showed in the [Getting started tutorial](https://docs.arduino.cc/tutorials/portenta-x8/out-of-the-box), you can also see it in the terminal when running `adb`. Or you can go to `http://192.168.7.1:8000` if you use Windows and Linux, on MacOS use `http://192.168.8.1:8000`.
100100

101101
When you connect you should get some feedback in the terminal. Text will begin printing in the terminal, showing you information about the connection that has just been established. Like shown in the image below.
102102

103103
![Terminal printout during connection](assets/webserver-connect-terminal.png)
104104

105105
Now you should see a webpage like on the next image in your browser.
106106

107-
![Wordpress setup site](assets/webserver-wordpress-site.png)
107+
![Wordpress setup site](assets/webserver-Wordpress-site.png)
108108

109109
You are now free to go through the Wordpress set up process and configure it however you like.
110110

111111
## Conclusion
112112

113-
In this tutorial we went through how to install and run a wordpress and database container on the Portenta X8. We then accessed the Wordpress site on our X8 through our web browser. So now you can setup your own Wordpress site on your X8 device and access it from another device.
113+
In this tutorial we went through how to install and run a Wordpress and database container on the Portenta X8. We then accessed the Wordpress site on our X8 through our web browser. So now you can setup your own Wordpress site on your X8 device and access it from another device.
114114

115115

116116
## Troubleshooting
117117

118-
- If the containers aren't installing or running correctly check if there are any other containers currently running on the same ports as the ones used by the wordpress container. You can check this with ``docker ps -a``.
118+
- If the containers aren't installing or running correctly check if there are any other containers currently running on the same ports as the ones used by the Wordpress container. You can check this with ``docker ps -a``.
119119
- If there is any issue running docker commands, make sure you are using ``sudo`` before the commands.
120120
- If you can't connect to the site when everything is running you can double check the X8s ip address. Run the command `ip s a` in the adb shell. This will display the X8s ip address via usb and wifi. Try connecting via those ip addresses if all else fails.

0 commit comments

Comments
 (0)