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
> {note} The big difference between Lychee version 3 and Lychee version 4 is the served directory, i.e. where you webserver needs to point to.
38
-
39
-
- In the version 3, this was the root `.` of Lychee.
40
-
- In the version 4, this is the `public` directory inside Lychee.
41
-
42
-
### Using Apache
43
-
44
-
**Make sure you have the module rewrite available and enabled: `a2enmod rewrite`**.
45
-
46
-
Modify your `/etc/apache2/apache2.conf` to allow `.htaccess` to set up the rewrite rules:
47
-
```apacheconf
48
-
<Directory /var/www/html/Lychee>
49
-
Options Indexes FollowSymLinks
50
-
AllowOverride All
51
-
Require all granted
52
-
</Directory>
53
-
```
54
-
55
-
Modify or create `example.com.conf` in `/etc/apache2/sites-available/` to point out the served directory:
56
-
```apacheconf
57
-
<VirtualHost *:80>
58
-
ServerName example.com
59
-
60
-
DocumentRoot /var/www/html/Lychee/public
61
-
62
-
ErrorLog ${APACHE_LOG_DIR}/error.log
63
-
CustomLog ${APACHE_LOG_DIR}/access.log combined
64
-
</VirtualHost>
65
-
```
66
2
67
-
Enable the site:
68
-
```bash
69
-
a2ensite `example.com.conf`
70
-
```
71
-
72
-
Restart apache2:
73
-
```bash
74
-
systemctl restart apache2
75
-
```
76
-
77
-
Process with the
78
-
79
-
### Using Nginx
80
-
81
-
If you are using Nginx, an example configuration can be found [here](installation.html#web-server-configuration).
82
-
83
-
### Run the migrations
3
+
## Upgrading Lychee docker installations from v6 to v7
84
4
85
-
Make sure you have `DB_OLD_LYCHEE_PREFIX` set in your `.env` to correspond the table prefix of your old database, then run `php artisan migrate`.
86
-
87
-
## Upgrading from Lychee v6 to v7
88
-
89
-
> {danger} **Critical Breaking Changes**: Version 7 introduces significant architectural changes to the Docker setup. **You must update your docker-compose configuration** when upgrading from v6 to v7. Simply changing the image tag will not work.
5
+
> {note} **Critical Breaking Changes**: Version 7 introduces significant architectural changes to the Docker setup. **You must update your docker-compose configuration** when upgrading from v6 to v7. Simply changing the image tag will not work.
90
6
91
-
### Major Changes in v7
7
+
### Major Changes in Version 7
92
8
93
9
Version 7 marks a fundamental shift in Lychee's Docker architecture:
94
10
@@ -99,7 +15,7 @@ Version 7 marks a fundamental shift in Lychee's Docker architecture:
99
15
100
16
### Volume Mount Changes
101
17
102
-
#### v6 Volume Structure (OLD)
18
+
#### Version 6 Volume Structure (OLD)
103
19
```yaml
104
20
volumes:
105
21
- ./lychee/conf:/conf
@@ -109,7 +25,7 @@ volumes:
109
25
- ./lychee/tmp:/lychee-tmp
110
26
```
111
27
112
-
#### v7 Volume Structure (NEW)
28
+
#### Version 7 Volume Structure (NEW)
113
29
```yaml
114
30
volumes:
115
31
- ./lychee/uploads:/app/public/uploads
@@ -211,7 +127,7 @@ services:
211
127
- lychee
212
128
```
213
129
214
-
> {danger} **Critical**: When using worker services, you **must** set `QUEUE_CONNECTION=database` (or `redis` if using Redis) in **both** the API and worker services. Without this, jobs will not be processed properly.
130
+
> {note} **Critical**: When using worker services, you **must** set `QUEUE_CONNECTION=database` (or `redis` if using Redis) in **both** the API and worker services. Without this, jobs will not be processed properly.
215
131
216
132
### Worker Service Benefits
217
133
@@ -333,3 +249,92 @@ Follow these steps to migrate from v6 to v7:
333
249
- Check database service is healthy: `docker-compose ps lychee_db`
334
250
335
251
For more help, visit our [GitHub Discussions](https://github.com/LycheeOrg/Lychee/discussions) or [Discord server](https://discord.gg/y4aUbnF).
252
+
253
+
254
+
## Upgrading from Lychee v3 to v4
255
+
256
+
### Checking requirements
257
+
258
+
Check that the server satisfifes the [requirements](installation.html#web-server-configuration). In particular pay attention the PHP extensions.
259
+
You can display installed PHP extensions using `phpinfo()`.
260
+
261
+
### Preparing the files
262
+
263
+
Assuming the following tree:
264
+
```
265
+
/var/
266
+
|- www/
267
+
|- html/
268
+
|- Lychee/
269
+
|- <you are here>
270
+
```
271
+
272
+
Rename Lychee into Lychee-v3:
273
+
```bash
274
+
mv Lychee Lychee-v3
275
+
```
276
+
277
+
Install Lychee files by either uploading the content of the released zip or cloning the repository:
Copy file name to clipboardExpand all lines: src/content/post/2025-12-31-version-7.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ In May 2025, FrankenPHP gained official support from the PHP Foundation, cementi
29
29
30
30
The new FrankenPHP-powered Docker image is available at `ghcr.io/lycheeorg/lychee:edge` and will become the default once version 7 is fully stable.
31
31
32
-
This architectural change means you will need to update your Docker setup when upgrading from version 6 to version 7 with FrankenPHP. Please refer to our [upgrade documentation](https://lycheeorg.github.io/docs/upgrading-from-lychee-v6-to-v7) for detailed instructions.
32
+
This architectural change means you will need to update your Docker setup when upgrading from version 6 to version 7 with FrankenPHP. Please refer to our [upgrade documentation](https://lycheeorg.github.io/docs/upgrade.html) for detailed instructions.
0 commit comments