Git Product home page Git Product logo

Comments (3)

geeksupport1 avatar geeksupport1 commented on May 30, 2024 1

Thanks for replying nezhar.
I've looking into how to do it.

The following work!!!

changes made were to give wordpress and mysql a specific version instead of using latest.

==============

services:
wp:
image: wordpress:5.2.4 # https://hub.docker.com/_/wordpress/
....
db:
image: mysql:8
restart: unless-stopped

==================

from wordpress-docker-compose.

geeksupport1 avatar geeksupport1 commented on May 30, 2024

Here is the log again with \n

geek@DESKTOP-O7A5KCN:/e/PROJECT/DOCKER$ docker-compose up
Starting _db_1 ...
Starting _db_1 ... done
Starting _wp_1 ...
Starting _wp_1
Starting _pma_1 ...
Starting _wp_1 ... done
Starting _wpcli_1 ...
Starting _wpcli_1 ... done
Attaching to _db_1, _wp_1, _pma_1, _wpc
db_1 | 2019-10-28 12:35:28+00:00 [Note] [Entrypoint]: Entrypoint script for MyS
db_1 | 2019-10-28 12:35:33+00:00 [Note] [Entrypoint]: Switching to dedicated us
db_1 | 2019-10-28 12:35:33+00:00 [Note] [Entrypoint]: Entrypoint script for MyS
db_1 | 2019-10-28T12:35:34.590819Z 0 [Warning] [MY-011070] [Server] 'Disabling k' port: 3306 MySQL Community Server - GPL.
db_1 | 2019-10-28T12:35:51.209281Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060
wp_1 | [28-Oct-2019 12:35:52 UTC] PHP Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'root'@'172.18.0.3' (using password: YES) in Standard input code on line 22
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wpcli_1 | Error: Error establishing a database connection.
_wpcli_1 exited with code 1
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | MySQL Connection Error: (1045) Access denied for user 'root'@'172.18.0.3' (using password: YES)
wp_1 |
wp_1 | WARNING: unable to establish a database connection to 'db'
wp_1 | continuing anyways (which might have unexpected results)
wp_1 |
wp_1 | AH00543: apache2: bad user name 1000
mychildcare_wp_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping _pma_1 ... done
Stopping _db_1 ... done

from wordpress-docker-compose.

nezhar avatar nezhar commented on May 30, 2024

It looks like there is something wrong with the Apache user: wp_1 | AH00543: apache2: bad user name 1000

Try to set the APACHE_RUN_USER nad the APACHE_RUN_GROUP environment variables in docker-compose.yml.

Also, can you try to use a custom Dockerfile and use this entrypoint script: https://github.com/nezhar/laravel-docker-compose/blob/master/docker/php/entrypoint

Are you running on wsl2? Not sure if this can be related to file permissions.

from wordpress-docker-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.