nezhar / wordpress-docker-compose

Easy Wordpress development with Docker and Docker Compose
MIT License
1.84k stars 1.31k forks source link

ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied #63

Closed akasandra closed 4 years ago

akasandra commented 4 years ago

Cloning repo and running compose up doesn't work anymore.

$ docker-compose up
Creating network "wordpress_default" with the default driver
Creating volume "wordpress_db_data" with default driver
Creating wordpress_db_1 ... done
Creating wordpress_pma_1   ... done
Creating wordpress_wp_1  ... done
Creating wordpress_wpcli_1 ... done
Attaching to wordpress_db_1, wordpress_wp_1, wordpress_pma_1, wordpress_wpcli_1
db_1     | 2020-07-08 20:00:00+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
db_1     | 2020-07-08 20:00:00+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
wp_1     | chown: changing ownership of '.': Permission denied
db_1     | 2020-07-08 20:00:00+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
pma_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.25.0.4. Set the 'ServerName' directive globally to suppress this message
db_1     | ls: cannot open directory '/docker-entrypoint-initdb.d/': Permission denied
wordpress_wp_1 exited with code 1
pma_1    | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.25.0.4. Set the 'ServerName' directive globally to suppress this message
pma_1    | [Wed Jul 08 20:00:01.069317 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.6 configured -- resuming normal operations
pma_1    | [Wed Jul 08 20:00:01.069365 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress_db_1 exited with code 2
wpcli_1  | Error: This does not seem to be a WordPress installation.
wpcli_1  | Pass --path=`path/to/wordpress` or run `wp core download`.
wordpress_wpcli_1 exited with code 1
hyperknot commented 4 years ago

Are you on Linux or Windows? In Linux you can try these:

chown -R www-data:www-data .
chmod 755 -R wp_app/wp-content
akasandra commented 4 years ago

This repo seems inactive thus closing the issue. It is easier to make compose from scratch in this case.