0% found this document useful (0 votes)
8 views

Owncloud

Uploaded by

Angel torrez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Owncloud

Uploaded by

Angel torrez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

apt update && sudo apt upgrade -y

apt install apache2 -y

sudo systemctl start apache2


sudo systemctl enable apache2

apt install mysql-server -y

sudo systemctl start mysql


sudo systemctl enable mysql

sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'abc123*';
quit

sudo mysql_secure_installation

sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt install php7.4 php7.4-


{opcache,gd,curl,mysqlnd,intl,json,ldap,mbstring,mysqlnd,xml,zip}

sudo mysql -u root -p

CREATE DATABASE owncloud;


CREATE USER 'ownclouduser'@'localhost' IDENTIFIED BY 'abc123*';
GRANT ALL ON owncloud.* TO 'ownclouduser'@'localhost';
FLUSH PRIVILEGES;
exit

wget https://download.owncloud.com/server/stable/owncloud-10.12.1.zip

sudo apt-get install zip -y


unzip owncloud-10.12.1.zip

sudo mv owncloud /var/www/html/


sudo chown -R www-data:www-data /var/www/html/owncloud

sudo nano /etc/apache2/site-available/owncloud.conf

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/owncloud
ServerName example.com

<Directory /var/www/html/owncloud>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>

ErrorLog ${APACHE_LOG_DIR}/example.com_error.log
CustomLog ${APACHE_LOG_DIR}/example.com_access.log combined
</VirtualHost>
sudo a2enmod rewrite mime unique_id
sudo systemctl restart apache2

You might also like