This is the latest developer version of WP-Staging for WordPress.
- Docker
- Clone the GitHub master branch:
https://github.com/WP-Staging/wp-staging-pro.git
- Copy
.env.dist
as.env
- Run
make init
for the first time installation. Runmake up
later.
Run make init
will create docker containers with NGINX, mariaDB, PHP5.3.
It will download latest WordPress version and will create a single and a network activated WordPress site
You can access them via single.wp-staging.local
and multi.wp-staging.local
####WordPress admin user
U: admin P: password
####Database
U: admin P: Password
Mysql Root Password: 123456
- php-cli, php-curl, php-mbstring, php-xml
- Start the Selenium server with
make test_up
- Run
make test_single
ormake test_multi
(CheckMakefile
for more options)
- Copy
.env.dist
as.env
- Make sure to add given IP address in
DOCKER_GATEWAY_IP
value, in.env
file to your hosts file. Such as;
172.199.0.1 single.wp-staging-free.local
172.199.0.1 multi.wp-staging-free.local
Files in docker/install/*
must be executable within host (your own) FS (file system)
as permissions will be copied as it is to given destination in container FS.
- Run
make init
for the first time installation.
WARNING If you have changed HOST_SINGLE
or HOST_MULTI
values in .env
file, make sure to reflect changes
to your hosts file.
- If you already installed before, just run
make up
ormake start
to start the project
If you get ERROR 2002 (HY000): Can't connect to MySQL server on 'database' (115)
error, this is because of two things;
- The database server didn't kick-in on your host. If the host is slow, you might need to increase value of
WAIT_SERVICES_IN_SECONDS
in.env
file. - If you see the service is up & running but container logs spits out something along the lines of
aborted connection to db unconnected user unauthenticated
then it is likely due to this bug.
My .env
changes are not reflected;
- You need to restart containers every time you make a change in your
.env
file. Containers read this information upon initialization. They are not changed dynamically.
You can run make reset
If you find an issue, let us know here!
This is a developer's portal for WP-Staging
Anyone is welcome to contribute to WP-Staging. Please read the guidelines for contributing to this repository.
There are various ways you can contribute:
- Raise an Issue on GitHub
- Send us a Pull Request with your bug fixes and/or new features
- Translate WP-Staging into different languages
- Provide feedback and suggestions on enhancements