Code in this video_How to Install and Configure ownCloud Server on Ubuntu/Debian/Debian-based
sudo apt install -y vim unzip zip wget php7.4-apcu php7.4-bcmath php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-gmp php7.4-imagick php7.4-intl php7.4-mbstring php7.4-mysql php7.4-zip php7.4-xml php7.4-ldap CREATE DATABASE owncloud_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; CREATE USER owncloud_user@localhost IDENTIFIED BY 'owncloud_PWD'; GRANT ALL ON owncloud_db.* TO owncloud_user@localhost; https://owncloud.com/download-server/ <VirtualHost *:80> DocumentRoot "/var/www/html/owncloud" ServerName localhost <Directory "/var/www/html/owncloud/"> Options MultiViews FollowSymlinks AllowOverride All Order allow,deny Allow from all </Directory> TransferLog /var/log/apache2/owncloud_access.log ErrorLog /var/log/apache2/owncloud_error.log </VirtualHost>