Config opcache for php8 to ensure the maximum performance of your server, after you have installed it, config like the following,

Your php.ini file should contain the following directives:

zend_extension=opcache.so

opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=500000000
opcache.jit=1235
opcache.revalidate_freq=0
opcache.validate_timestamps=1
opcache.max_accelerated_files=10000
opcache.memory_consumption=192
opcache.max_wasted_percentage=10
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1

ref https://medium.com/@edouard.courty/make-your-php-8-apps-twice-as-fast-opcache-jit-8d3542276595

Sometimes when we update the drupal major version from 8.x to 9.x or even to 10.x, we will have problems with the modules, for example, there might be multiple installations of the single module, that is, you wil find the modules in two directories,

/modules/modulename
/modules/contrib/modulename

This is because the old module is installed manually and the contrib/ is installed by composer, to solve the problem, you have to do the following,

remove the /modules/modulename and run

vendor/bin/drush cr

to rebuild the cache registry, this will ensure the module is actually called from /modules/contrib/modulename.

Incase your module is not found in the /modules/contrib directory, you will need to run

composer require drupal/modulename

and then remove the module/modulename, run drush cr again.

sudo apt-get install -y python3 python3-dev python3-setuptools python3-pip libmysqlclient-dev ldap-utils libldap2-dev
sudo apt-get install -y memcached libmemcached-dev
sudo pip3 install --timeout=3600 django==3.2. future==0.18. mysqlclient==2.1. \ pymysql pillow==10.0. pylibmc captcha==0.4 markupsafe==2.0.1 jinja2 sqlalchemy==2.0.18 \ psd-tools django-pylibmc django_simple_captcha==0.5. djangosaml2==1.5. pysaml2==7.2. pycryptodome==3.16. cffi==1.15.1 lxml python-ldap==3.4.3

Above is the solution, it seems after upgrade, some python libraries are missing, just re-install these libraries and

su seafile
./seafile.sh start

Everything gets back to normal.

After upgrading the system to Unbuntu update to 22.04, php-fpm can not start, with error

error while loading shared libraries: libwebp.so.6

It seems the shared library is missing. Then just find the current libwebp.so in your system,

find / libwebp.so
/usr/lib/x86_64-linux-gnu/libwebp.so
/usr/lib/x86_64-linux-gnu/libwebp.so.7

I just copy libwebp.so to libwebp.so.6, then problem solved.

After upgrade seafile server to a newer version, i.e., from 8.0.X to 10.0.X, when starting "./seahub.sh start", if "Error happened during creating seafile admin" is found, here is the solution,

It is most likely caused by the user group of the directory and files,
for example, when your seafile server is located at /opt/seafile,
you should change user of all directories under this directory to seafile

chown seafile:seafile /opt/seafile -R

Then run run the bash

./seahub.sh start

Problem will be solved.

Reference,
https://www.0z.gs/seafile/1733.html