You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: guides/hosting/performance/performance-tweaks.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -187,7 +187,7 @@ The Shopware cache has a global cache id to clear the cache faster and work in a
187
187
188
188
## .env.local.php
189
189
190
-
[Symfony recommends](https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-production) that a `.env.local.php` file is used in Production instead of a `.env` file, to skip parsing of the .env file on every request.
190
+
[Symfony recommends](https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-production) that a `.env.local.php` file is used in Production instead of a `.env` file, to skip parsing of the .env file on every request.
191
191
If you are using a containerized environment, all those variables can also be set directly in the environment variables, instead of dumping then to a file.
192
192
193
193
Since shopware 6.4.15.0 you can dump the content of the .env file to a `.env.local.php` file by running `bin/console system:setup --dump-env` or `bin/console dotenv:dump --env {APP_ENV}`.
Copy file name to clipboardexpand all lines: guides/installation/from-scratch.md
+17-16
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ Be aware this will be a vastly more complex solution since additional system req
8
8
9
9
## Prerequisites
10
10
11
-
- A Linux-based operating system (Windows installation is not covered here, but notes are provided about installing within a WSL instance)
12
-
- An [Apache2 server installation](https://httpd.apache.org/docs/2.4/install.html) within the Linux-based operating system you have selected
13
-
- Installation of all of the required packages mentioned in the [Installation overview](overview.md), there are two main goals you need to accomplish.
11
+
- A Linux-based operating system (Windows installation is not covered here, but notes are provided about installing within a WSL instance)
12
+
- An [Apache2 server installation](https://httpd.apache.org/docs/2.4/install.html) within the Linux-based operating system you have selected
13
+
- Installation of all of the required packages mentioned in the [Installation overview](overview.md), there are two main goals you need to accomplish.
14
14
15
15
Please note that this guide is rather based on plugin development and contribution. If you need a template for full composer-based shop projects, please refer to the [production template](https://github.com/shopware/production).
16
16
@@ -22,10 +22,10 @@ Firstly, we need to set up Apache to locate Shopware 6. If you wish you could co
22
22
23
23
In order to do this, you should add a vhost definition to your Apache site configuration.
24
24
25
-
1) Create a file with the following pattern: `/etc/apache2/sites-available/*.conf`.
25
+
1) Create a file with the following pattern: `/etc/apache2/sites-available/*.conf`.
26
26
Here we will create a file called `/etc/apache2/sites-available/shopware-install.conf`
27
27
28
-
2) Within the created `shopware-install.conf` file place the following configuration:
28
+
1) Within the created `shopware-install.conf` file place the following configuration:
29
29
30
30
```text
31
31
<VirtualHost *:80>
@@ -46,12 +46,14 @@ Here we will create a file called `/etc/apache2/sites-available/shopware-install
46
46
</VirtualHost>
47
47
```
48
48
49
-
3) Symlink the `shopware-install.conf` file to the Apache2 `sites-enabled` directory:
49
+
1) Symlink the `shopware-install.conf` file to the Apache2 `sites-enabled` directory:
4) Restart the Apache2 service in order to activate your new configuration:
55
+
1) Restart the Apache2 service in order to activate your new configuration:
56
+
55
57
```shell
56
58
# Your mileage with this command may vary depending upon your chosen Linux operating system
57
59
sudo service apache2 restart
@@ -77,36 +79,35 @@ Once `localhostForwarding` is enabled, you should update you name your local dev
77
79
```text
78
80
xxxxxx.dev.localhost
79
81
```
82
+
80
83
...where 'xxxxxx' should be replaced with a 'hyphen/underscore separated' string.
81
84
82
85
{% hint style="info" %}
83
-
Make sure the `APP_URL` variable defined within your `[PROJECT_ROOT]/.env` file matches the `ServerName` value within your Apache2 Vhost configuration
86
+
Make sure the `APP_URL` variable defined within your `[PROJECT_ROOT]/.env` file matches the `ServerName` value within your Apache2 Vhost configuration
84
87
{% endhint %}
85
88
86
-
87
89
### Apache2 server configuration
88
90
89
91
Make sure following Apache modules are enabled:
90
92
91
-
* mod\_rewrite
92
-
* mod\_headers
93
-
* mod\_negotiation
93
+
- mod\_rewrite
94
+
- mod\_headers
95
+
- mod\_negotiation
94
96
95
97
{% hint style="info" %}
96
-
Checking if these modules are installed on apache is possible with the command `apachectl -M | grep [module_name]`. When searching for a specific module with `grep` make sure to only use the name suffix, such as "rewrite"
98
+
Checking if these modules are installed on apache is possible with the command `apachectl -M | grep [module_name]`. When searching for a specific module with `grep` make sure to only use the name suffix, such as "rewrite"
97
99
{% endhint %}
98
100
99
101
After a quick restart of apache you are done here.
100
102
101
103
{% hint style="info" %}
102
-
For Mac (OSX) operating systems:
104
+
For Mac (OSX) operating systems:
103
105
104
-
In your apache config, it is recommended to move the document root folder to the user's `$HOME` folder in order to avoid permission issues. This is the folder where Apache looks to serve file from. By default, the document root is configured as `/usr/local/var/www`.
106
+
In your apache config, it is recommended to move the document root folder to the user's `$HOME` folder in order to avoid permission issues. This is the folder where Apache looks to serve file from. By default, the document root is configured as `/usr/local/var/www`.
105
107
106
108
As this is a development machine, let's assume we want to change the document root to point to a folder in our own home directory. Search for the term "DocumentRoot" in your `httpd.conf` apache configuration, and you should see the following line:
Copy file name to clipboardexpand all lines: guides/plugins/apps/custom-data/custom-entities.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ you need the appropriate [permissions](../../../../resources/references/app-refe
62
62
## Shorthand prefix
63
63
64
64
Since v6.4.15.0 it is possible to also use the `ce_` shorthand prefix for your custom entities to prevent problems with length restrictions of names inside the DB.
0 commit comments