Skip to content

Development Environment Commands troubleshooting section request #922

@Mai-Saad

Description

@Mai-Saad

Issue Description

When trying to set up a fresh WP local dev environment using the instructions mentioned here, the user may face some errors which need to be fixed to have the environment up and running. So it will be great if we add any possible issues facing users with suggested solutions.

URL of the Page with the Issue

https://github.com/WordPress/wordpress-develop/blob/trunk/README.md

Section of Page with the issue

https://github.com/WordPress/wordpress-develop/blob/trunk/README.md#to-start-the-development-environment-for-the-first-time

Why is this a problem?

When using the cmd npm run env:install => got an error error: could not create new wp-config.php file
Screenshot from 2023-07-05 10-58-02

Suggested Fix

To resolve that issue:

  1. Open the localhost URL i.e http://localhost:8889/ => Add database data as
    database-data then submit
  2. Create wp-config.php and copy-paste the code here
    Screenshot from 2023-07-05 11-02-29 then click run the installation
  3. Try to login to the dashboard using credentials here => if it didn't work like that
    Screenshot from 2023-07-05 11-15-40
    then create a new admin user using
    npm run env:cli -- wp user create admin [email protected] --display_name=test --role=administrator --user_pass=password

Notes

  • Used OS is Ubuntu 23.04
  • We may have a better solution to the same problem than the one mentioned above, please feel free to share it after testing.
  • Other kinds of problems may face other users based on the environment, will be great if we can build up on this and add anything further that may come up => if many issues are there, then we can create a new troubleshooting page and add a link to the troubleshooting page in the readme file for simplicity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions