-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #938 from matomo-org/develop
Update live for upcoming 4.15.3 release
- Loading branch information
Showing
55 changed files
with
13,862 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PHP_VERSION=8.1 | ||
WP_DB_HOST=mariadb | ||
WP_ADMIN_USER=root | ||
[email protected] | ||
WOOCOMMERCE_PIWIK_ANALYTICS=./empty | ||
PORT=3000 | ||
PAGER=more | ||
BACKEND=mariadb | ||
MULTISITE=0 | ||
WOOCOMMERCE=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,11 @@ | |
.*~ | ||
*~ | ||
.idea/ | ||
/empty/ | ||
/node_modules/* | ||
!/node_modules/chart.js | ||
|
||
# for local docker dev | ||
docker | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
A hassle-free and cost-free web analytics platform for your WordPress which lets you stay in full control with 100% data ownership and user-privacy protection. | ||
|
||
This plugin installs a fully functional [Matomo](https://matomo.org) within your WordPress. If you already have a working Matomo (either [On-Premise](https://matomo.org/matomo-on-premise/) or [Matomo Cloud](https://matomo.org/hosting/)), use the [WP-Matomo Integration plugin](https://wordpress.org/plugins/wp-piwik/) instead. If you have a high traffic website, we recommend using On-Premise or the Cloud-hosted solution for better performance. | ||
This plugin installs a fully functional [Matomo](https://matomo.org) within your WordPress. If you already have a working Matomo (either [On-Premise](https://matomo.org/matomo-on-premise/) or [Matomo Cloud](https://matomo.org/hosting/)), use the [Connect Matomo Integration plugin](https://wordpress.org/plugins/wp-piwik/) instead. If you have a high traffic website, we recommend using On-Premise or the Cloud-hosted solution for better performance. | ||
|
||
Learn more about this plugin in the [readme.txt](readme.txt). | ||
|
||
|
@@ -42,19 +42,19 @@ composer install # or composer.phar install | |
|
||
#### Local environment through docker | ||
|
||
If you have docker and docker-compose installed, you can setup a local development environment with a single command: | ||
If you have docker and docker compose installed, you can setup a local development environment with a single command: | ||
|
||
```bash | ||
docker-compose up wordpress; docker-compose stop | ||
npm run compose up wordpress; npm run compose stop | ||
``` | ||
|
||
The first time the container starts it will compile php extensions within the container it needs, download wordpress | ||
and set it up. | ||
|
||
After starting the container, visit `https://localhost:3000/` to see the list of available wordpress versions. | ||
Pick one, and it will take you to the Wordpress installer. | ||
After starting the container, visit `http://localhost:3000/` to see the list of available wordpress versions. | ||
Pick one, and it will take you to Wordpress. | ||
|
||
After installing Wordpress, go to the plugins page and activate Matomo for Wordpress. | ||
Go to wp-login.php, then enter `root` for the user name and `pass` for the password and login. | ||
|
||
Note: docker related files, such as the downloaded wordpress and database files, will be stored in a new folder named `./docker`. As long | ||
as you are using this local dev environment, you should not delete this folder. | ||
|
@@ -71,22 +71,55 @@ variables are supported: | |
- `WP_PLUGINS` - a list of plugin/version pairs like "my-plugin my-other-plugin:1.2.3". For each item, wp-cli will attempt to download and activate the plugin. | ||
This is the same format as the Active Plugins entry in the System Report, so you could copy that value to this environment variable to quickly (or more quickly) | ||
replicate a user's setup. | ||
- `WP_ADMIN_USER` - the admin wordpress username, defaults to 'root'. This variable is only used when installing wordpress. It shouldn't be changed afterwards, unless doing a fresh install. | ||
- `WP_ADMIN_EMAIL` - the admin user's email, defaults to '[email protected]'. This variable is only used when installing wordpress. It shouldn't be changed afterwards, unless doing a fresh install. | ||
- `WOOCOMMERCE` - if set, installs and sets up woocommerce. This includes setting up a payment gateway with stripe and adding some test products. (Note: you will still have to go through woocommerce | ||
onboarding as there is no way to disable it, and that means you will have to enter your stripe test keys manually when setting up the payment gateway.) | ||
|
||
**Running wp-cli** | ||
|
||
Make sure the wordpress service is running in one terminal, then in another terminal run: | ||
|
||
```bash | ||
npm run compose run wp -- <... rest of command ...> | ||
``` | ||
|
||
**Running matomo console** | ||
|
||
Make sure the wordpress service is running in one terminal, then in another terminal run: | ||
|
||
```bash | ||
npm run compose run console -- <... rest of command ...> | ||
``` | ||
|
||
**Testing on nginx** | ||
|
||
To run the local dev environment with nginx instead of apache, first make sure there is a `127.0.0.1 nginx` entry in your `/etc/hosts` file. | ||
|
||
Then run the following command: | ||
|
||
```bash | ||
npm run compose up nginx fpm; npm run compose stop | ||
``` | ||
|
||
Finally visit `http://nginx:3000/`. | ||
|
||
Note: you cannot have both the apache and nginx services running simultaneously as they will try to use the same port. | ||
|
||
**Accessing MariaDB/MySQL** | ||
|
||
First ensure the database you want to inspect (mariadb or mysql) is the one that's currently being used by your local | ||
environment. Then, while the local environment is running in one shell, open another and run the command: | ||
|
||
```bash | ||
docker-compose run mariadb mariadb -h mariadb -u root -p | ||
npm run compose run mariadb mariadb -h mariadb -u root -p | ||
``` | ||
|
||
Enter `pass` for the password. | ||
|
||
(For mysql, replace instances of "mariadb" in the command with "mysql".) | ||
|
||
## Security | ||
|
||
Security is a top priority at Matomo. As potential issues are discovered, we validate, patch and release fixes as quickly as we can. We have a security bug bounty program in place that rewards researchers for finding security issues and disclosing them to us. | ||
|
||
[Learn more](https://matomo.org/security/) or check out our [HackerOne program](https://hackerone.com/matomo). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.