mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
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:
parent
07fd406030
commit
87e3fc883e
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user