Wordpress Install Rasberry Pi Docker

August 21, 2024, 23:10

protitprollegro

Should be able to access via browser but can't unfortunately
root@joshua:/mnt/sata/docker/symphonyyoga# sudo docker-compose logs wordpress
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | [Wed Aug 21 21:08:42.481666 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 21:08:42.481790 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:09:53 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:09:58 +0000] "GET /favicon.ico HTTP/1.1" 500 2719 "http://192.168.50.91:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:13 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:21 +0000] "GET /wp-admin/install.php HTTP/1.1" 403 497 "http://192.168.50.91:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:31 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:16:26 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:38:41 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:38:49 +0000] "GET /wp-admin/install.php HTTP/1.1" 403 497 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:39:05 +0000] "GET /wp-admin HTTP/1.1" 301 596 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:39:05 +0000] "GET /wp-admin/ HTTP/1.1" 302 465 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:41:13 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | [Wed Aug 21 21:55:58.358004 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00170: caught SIGWINCH, shutting down gracefully
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | [Wed Aug 21 22:14:29.996782 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 22:14:29.996935 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress-1  | [Wed Aug 21 22:41:32.617161 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00169: caught SIGTERM, shutting down
wordpress-1  | [Wed Aug 21 22:41:33.290713 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 22:41:33.290848 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

illegitimate_egg

did you expose the port?

protitprollegro

I think that watchtower is conflicting in my mind

protitprollegro

Otherwise what in particular are you referring to?

illegitimate_egg

is the port inside the docker instance actually available on the system?

illegitimate_egg

is it exposed

protitprollegro

root@joshua:~# sudo docker ps
CONTAINER ID   IMAGE                           COMMAND                  CREATED       STATUS                        PORTS                                                                                            NAMES
fc06c22095a3   wordpress:latest                "docker-entrypoint.s…"   4 hours ago   Up About a minute             0.0.0.0:8080->80/tcp, :::8080->80/tcp                                                            symphonyyoga-wordpress-1
94035af44def   mariadb:latest                  "docker-entrypoint.s…"   4 hours ago   Up About a minute             3306/tcp                                                                                         symphonyyoga-db-1
242454ddc723   containrrr/watchtower:latest    "/watchtower"            9 days ago    Up About a minute (healthy)   8080/tcp                                                                                         watchtower
bd5ce8c378fe   portainer/portainer-ce:latest   "/portainer"             9 days ago    Up About a minute             0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp, 9443/tcp   portainer
root@joshua:~# 

oops.se

If you post the docker-compose file or the commands used to create the dockers would help you to get a answer.

protitprollegro

services:

  wordpress:
    image: wordpress:latest
    restart: always
    ports:
      - "8080:80"
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: exampleuser
      WORDPRESS_DB_PASSWORD: examplepass
      WORDPRESS_DB_NAME: exampledb
    volumes:
      - ./wordpress:/var/www/html
      - ./php.ini:/usr/local/etc/php/conf.d/custom.ini  # Add this line for the custom php.ini

  db:
    image: mariadb:latest  # Use MariaDB for ARM compatibility
    restart: always
    environment:
      MYSQL_DATABASE: exampledb
      MYSQL_USER: exampleuser
      MYSQL_PASSWORD: examplepass
      MYSQL_ROOT_PASSWORD: somerootpassword
    volumes:
      - ./mysql_data:/var/lib/mysql