1、确认操作系统版本
cat /etc/os-release
2、下载安装包 owncloud10
Wget https://download.owncloud.com/server/stable/owncloud-complete-20220518.tar.bz2
3、安装apache2
apt install apache2
4、安装数据库
apt install mariadb-server
5、安装php7.4(Debian12默认是8.2)
apt update
apt install software-properties-common ca-certificates lsb-release apt-transport-https
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -