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

Is there a complete guide from A to Z how to setup this repo INCLUDING details like setting up the users node and www-data? #299

Open
rikhall1515 opened this issue May 1, 2021 · 1 comment

Comments

@rikhall1515
Copy link

I've been trying my best to read through the issues on here to figure out a way to deploy this starterkit, but there's a lot of things missing that I don't know exaclty how to fix.

wp-headless | Waiting for MySQL..
wp-headless | Error: This does not seem to be a WordPress installation.
wp-headless | Pass --path=path/to/wordpressor runwp core download.
wp-headless | Error: '/var/www/html/' is not writable by current user.

I've been working on fixing this specific issue, manually having to add in the node user (for some reason it did not exist at all). To my surprise the /var/www/html directory didn't even exist when I fired up my ubuntu with linux subsystem. But regardless of any fixes I tried to use from any of the other issues on here, none of them have worked.

To summarize what I've done:

  1. I activated hypervisor and WSL 2.
  2. Downloaded and successfully fired up a terminal window instance of ubuntu after installing it from the microsoft app store.
  3. Downloaded and installed the docker desktop setup fully on my windows machine.
    4a. I've installed node, wordpress, mysql, and all the relevant extensions. I've also made sure to activate WSL integration into my ubuntu terminal.
    4b. I downloaded the repo onto my ~ directory and have literally not touched anything at all, everything remains exactly the same way as it was installed.
  4. I have used the docker-compose up --build --force-recreate wp-headless command both without and with sudo.
  5. I have added the node user, given him privileges to see into the frontend/node_modules directory as per instructions from a previous issue here.
  6. I manually created the /www/html subdirectories in the /var directory (as those subdirectories did not exist by default for some reason).
  7. I even copied the wordpress folder from the repo into the now created /var/www/html directory in hopes that it would recognize it.

So far I've tried everything, that I could possibly find as being a reasonable solution to this - but it still has not fixed the issue. Any help would be appreciated, thanks.

@GuilhermeRava
Copy link

After wasting a few hours I managed to fix the Error: '/var/www/html/' is not writable by current user..
It turns out it had nothing to do with the container itself nor the user, but the cloned files in my server.

When you clone this repo in your server the wordpress folder lacks permissions, so I had to change its permissions:

chmod -R 777 <clone_repo_root>/wordpress

then do docker compose --progress plain up --build --force-recreate wp-headless

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