open-source software product for sharing and syncing of files
Update Server:
apt update && apt upgrade -y
set hostname:
hostnamectl set-hostname ex.example.com
Install Apache:
apt install apache2
Install Mysql:
sudo apt install mysql-server -y
mysql
CREATE DATABASE ownclouddb;
CREATE USER 'ownclouduser'@'localhost' IDENTIFIED WITH mysql_native_password BY '123Admin';
GRANT ALL PRIVILEGES ON ownclouddb.* TO 'ownclouduser'@'localhost';
FLUSH PRIVILEGES;
exit
Install php:
sudo apt install php libapache2-mod-php php-mysql php-opcache php-gd php-curl php-mysqlnd php-intl php-json php-ldap php-mbstring php-mysqlnd php-xml php-zip -y
sudo systemctl enable --now apache2
sudo systemctl enable --now mysql
sudo systemctl restart apache2
Install owncloud:
wget https://download.owncloud.com/server/...
apt install unzip -y
unzip owncloud-complete-latest.zip
sudo mv owncloud /var/www/html
sudo chown -R www-data: /var/www/html/owncloud
create an Apache configuration file:
sudo nano /etc/apache2/sites-available/owncloud.conf
paste
############## i'm changing angled bracket with square bracket ######
[VirtualHost *:80]
ServerAdmin [email protected]
DocumentRoot /var/www/html/owncloud
ServerName ex.example.com
[][Directory /var/www/html/owncloud]
Options FollowSymlinks
AllowOverride All
Require all granted
[/Directory]
ErrorLog ${APACHE_LOG_DIR}/ex.example.com_error.log
CustomLog ${APACHE_LOG_DIR}/ex.example.com_access.log combined
[/VirtualHost]
sudo systemctl restart apache2
http://server_ip/owncloud
Watch video How to install ownCloud in ubuntu online without registration, duration hours minute second in high quality. This video was added by user Quickloss3 23 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 894 once and liked it 13 people.