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

install-wp: Permission denied #2

Closed
oxismailxo opened this issue Nov 26, 2021 · 3 comments
Closed

install-wp: Permission denied #2

oxismailxo opened this issue Nov 26, 2021 · 3 comments
Assignees

Comments

@oxismailxo
Copy link

Hello Cosimo,

i pulled your project & run it but i'm getting this error when running ./wp-init.sh

the error:
image

Thank you !

@cosimoscarcella cosimoscarcella self-assigned this Nov 29, 2021
cosimoscarcella added a commit that referenced this issue Nov 29, 2021
fixed #2; use absolute path of wp-install script
@cosimoscarcella
Copy link
Owner

Hi @oxismailxo,
thanks for noticing the issue. Let me know if this solves your problem.

Regards, Cosimo

@oxismailxo
Copy link
Author

@cosimoscarcella ,

Thank you for time & fixing the problem, just another error showed up:
Warning: Failed to create directory '/etc/X11/fs/.wp-cli/cache/': mkdir(): Permission denied.

image

Thank you again !

@oxismailxo
Copy link
Author

Hello Again @cosimoscarcella ,

I did some research and found there is a difference between wp-cli image user's UID & wp-cli image user's UID cause wp-cli is alpine: docker-library/wordpress#417 (comment)

So i added this variable "WP_CLI_CACHE_DIR: /tmp" to the wp-cli's environment:
wp-cli:
depends_on:
- mysql
- wordpress
image: wordpress:cli
env_file: .env
user: xfs
environment:
WP_CLI_CACHE_DIR: /tmp
WORDPRESS_DB_USER: ${MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}

Thank you @cosimoscarcella for this great project !

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

2 participants