Installing PHP 8.5

Keep in mind that as of PHP 8.5, the OpCache module is included in PHP and is no longer distributed as a separate package.

If you want to install PHP 8.5 now, use these instructions at your own risk.

sudo -i
cd
git clone https://github.com/hestiacp/hestiacp.git ~/git/hestiacp-php85
cd ~/git/hestiacp-php85
git fetch origin pull/5157/head:pr-5157
git switch pr-5157
git diff --name-only main...pr-5157 | while read f; do cp "/usr/local/hestia/$f" "/usr/local/hestia/$f.before_php85"; cp -f "$f" "/usr/local/hestia/$f";done
v-add-web-php 8.5

If you want to revert it:

v-delete-web-php 8.5
find /usr/local/hestia -name "*before_php85" | while read f; do ori="$(sed 's/\.before_php85$//' <<<"$f")" ; mv "$f" "$ori";done