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
closes#1753closes#2156
As per discussion here
#2060 (comment)
I went ahead with different repos for different php versions. Versioned
support with stuff like `apt install frankenphp8.5` or `apk add
frankenphp85` are technically also ready, but I'm not running any CI for
that yet. I don't think it's worth it at this point as it would double
the amount of runs.
The old debian repository with only 8.4 is deprecated but will receive
updates for a few more months.
Every update/installation will print this notice, though, which will
hopefully make everyone aware:
```console
# running update from 8.4.15...
Unpacking php-zts-cli (8.4.16-1) ...
Setting up php-zts-cli (8.4.16-1) ...
================================================================================
⚠️ DEPRECATION NOTICE
================================================================================
The single-version php-zts repository is deprecated and will no longer receive updates.
Please migrate to the new repository with different PHP versions available.
More information: https://pkgs.henderkes.com
================================================================================
```
Updated the installer to version 8.5.
Copy file name to clipboardExpand all lines: docs/performance.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ However, it is possible to substantially improve performance using an appropriat
7
7
8
8
By default, FrankenPHP starts 2 times more threads and workers (in worker mode) than the available numbers of CPU.
9
9
10
-
The appropriate values depend heavily on how your application is written, what it does and your hardware.
10
+
The appropriate values depend heavily on how your application is written, what it does, and your hardware.
11
11
We strongly recommend changing these values. For best system stability, it is recommended to have `num_threads` x `memory_limit` < `available_memory`.
12
12
13
13
To find the right values, it's best to run load tests simulating real traffic.
@@ -43,7 +43,7 @@ Also, [some bugs only happen when using musl](https://github.com/php/php-src/iss
43
43
44
44
In production environments, we recommend using FrankenPHP linked against glibc, compiled with an appropriate optimization level.
45
45
46
-
This can be achieved by using the Debian Docker images, using our maintainers [.deb](https://debs.henderkes.com) or [.rpm](https://rpms.henderkes.com) packages, or by [compiling FrankenPHP from sources](compile.md).
46
+
This can be achieved by using the Debian Docker images, using [our maintainers .deb, .rpm, or .apk packages](https://pkgs.henderkes.com), or by [compiling FrankenPHP from sources](compile.md).
47
47
48
48
## Go Runtime Configuration
49
49
@@ -146,7 +146,7 @@ All usual PHP-related performance optimizations apply with FrankenPHP.
146
146
147
147
In particular:
148
148
149
-
- check that [OPcache](https://www.php.net/manual/en/book.opcache.php) is installed, enabled and properly configured
149
+
- check that [OPcache](https://www.php.net/manual/en/book.opcache.php) is installed, enabled, and properly configured
echo"📦 Detected apt. Installing FrankenPHP from DEB repository..."
55
-
if [ -n"${SUDO}" ];then
51
+
ifcommand -v apt-get >/dev/null 2>&1;then
52
+
echo"📦 Detected apt-get. Installing FrankenPHP from DEB repository..."
53
+
if [ "$(id -u)"-ne 0 ];then
54
+
SUDO="sudo"
55
+
echo"❗ Enter your password to grant sudo powers for package installation"
56
+
${SUDO} -v ||true
57
+
fi
58
+
${SUDO} sh -c 'curl -fsSL https://pkg.henderkes.com/api/packages/85/debian/repository.key -o /etc/apt/keyrings/static-php85.asc'
59
+
${SUDO} sh -c 'echo "deb [signed-by=/etc/apt/keyrings/static-php85.asc] https://pkg.henderkes.com/api/packages/85/debian php-zts main" | sudo tee -a /etc/apt/sources.list.d/static-php85.list'
60
+
${SUDO} apt-get update
61
+
${SUDO} apt-get -y install frankenphp
62
+
echo
63
+
echo"🥳 FrankenPHP installed to ${italic}/usr/bin/frankenphp${normal} successfully."
64
+
echo"❗ The systemd service uses the Caddyfile in ${italic}/etc/frankenphp/Caddyfile${normal}"
65
+
echo"❗ Your php.ini is found in ${italic}/etc/php-zts/php.ini${normal}"
66
+
echo
67
+
echo"⭐ If you like FrankenPHP, please give it a star on GitHub: ${italic}https://github.com/php/frankenphp${normal}"
68
+
exit 0
69
+
fi
70
+
71
+
ifcommand -v apk >/dev/null 2>&1;then
72
+
echo"📦 Detected apk. Installing FrankenPHP from APK repository..."
73
+
if [ "$(id -u)"-ne 0 ];then
74
+
SUDO="sudo"
56
75
echo"❗ Enter your password to grant sudo powers for package installation"
57
76
${SUDO} -v ||true
58
77
fi
59
-
${SUDO} sh -c 'curl -fsSL https://key.henderkes.com/static-php.gpg -o /usr/share/keyrings/static-php.gpg'
0 commit comments