opcache.ini.sh: include potential fix for opcache jit segfaults

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2023-01-18 05:00:30 +01:00
parent 07fd406030
commit 87e3fc883e
No known key found for this signature in database
GPG Key ID: 3510056072886A8F
2 changed files with 5 additions and 1 deletions

View File

@ -32,4 +32,5 @@ opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.file_cache=${TMP_DIR};
opcache.jit=function;
EOF

View File

@ -6,9 +6,12 @@ source /usr/local/etc/library.sh
dpkg -l | grep -e '^ii' | grep -e 'php-json' > /dev/null && {
apt-get remove -y php-json
run_app "clear-php-opcache"
}
echo "Updating opcache configuration..."
install_template "php/opcache.ini.sh" "/etc/php/${PHPVER}/mods-available/opcache.ini"
run_app "clear-php-opcache"
dpkg -l | grep -e '^ii' | grep -e 'php8.2' > /dev/null && {
msg="PHP 8.2 packages have been detected on your ncp instance, which could cause issues. If you didn't install them on purpose, please remove them with the following command: sudo apt remove php8.2-*"
echo -e "$msg"