Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'wp-headless' failed to build: #216

Open
krichdev opened this issue Jun 6, 2019 · 5 comments
Open

'wp-headless' failed to build: #216

krichdev opened this issue Jun 6, 2019 · 5 comments

Comments

@krichdev
Copy link

krichdev commented Jun 6, 2019

Here is the error when trying to run the docker-compose up -d command. Couldn't find any other issues with this same error.

Building wp-headless
Step 1/9 : FROM wordpress
 ---> d5668b07b850
Step 2/9 : RUN sed -i 's/80/8080/' /etc/apache2/ports.conf /etc/apache2/sites-enabled/000-default.conf
 ---> Using cache
 ---> 3bec69ac14d8
Step 3/9 : RUN mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini
 ---> Running in ecc784a32bdc
mv: cannot stat '/usr/local/etc/php/php.ini-development': No such file or directory
ERROR: Service 'wp-headless' failed to build: The command '/bin/sh -c mv "$PHP_INI_DIR"/php.ini-development "$PHP_INI_DIR"/php.ini' returned a non-zero code: 1```
@russellhill
Copy link

Anyone got a fix for this? Am seeing the same issue.

@katielgc
Copy link

katielgc commented Nov 4, 2019

i have the same issue too!

@modelm
Copy link
Member

modelm commented Dec 17, 2019

This could be caused by temporary changes in the wordpress or PHP docker images, although travis still builds the container okay. Does https://github.com/postlight/headless-wp-starter/tree/fix-wordpress-docker-tag fix this problem for any of you?

Alternatively, try updating your wordpress image first, then rebuilding:

docker pull wordpress
docker compose up --build --force-recreate wp-headless

@ed-spiredigital
Copy link

This issue still persists, does not improve

@catedm
Copy link

catedm commented Mar 17, 2021

I am getting this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants