OwnCloud is a open-source file sharing and cloud platform its similar to Google Drive and many more.
you can share files such as documents, images, and videos across multiple devices such as smartphones and Computer's.
You can also intrigate email service on owncloud for such work: reset user passwd, new updates, and etc.
Note: OwnCloud Client will be install for dataSync
Step 1: Update Ubuntu System Packages
$ sudo apt-get update
$ sudo apt install ca-certificates apt-transport-https software-properties-common
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
Step 2: Install Apache and PHP 7.2 in Ubuntu
$ sudo apt install apache2 libapache2-mod-php7.2 openssl php-imagick php7.2-common php7.2-curl php7.2-gd php7.2-imap php7.2-intl php7.2-json php7.2-ldap php7.2-mbstring php7.2-mysql php7.2-pgsql php-smbclient php-ssh2 php7.2-sqlite3 php7.2-xml php7.2-zip
Step 3) Start and Enable Apache service and check PHP current version
$ sudo systemctl start apache2
$ sudo systemctl enable apache2
Step 4) Create an OwnCloud User & Database for storing data
$ mysql -u root -p
CREATE DATABASE owncloud_db;
CREATE USER 'owncloud_user'@'localhost' IDENTIFIED BY 'isvst482fsecxdVDes75jh524fjsfdKJKJ';
GRANT ALL PRIVILEGES ON owncloud_db.* TO 'owncloud_user'@'localhost';
FLUSH PRIVILEGES;
Step 5: Download OwnCloud in Ubuntu
After creating the database, now download the OwnCloud zipped file using the following wget command.
sudo wget https://download.owncloud.org/community/owncloud-10.9.1.zip
Once downloaded, unzip the zipped package to the /var/www/ directory.
sudo unzip owncloud-10.9.1.zip -d /var/www/
Then, set permissions.
$ sudo chown -R www-data:www-data /var/www/owncloud/
$ sudo chmod -R 755 /var/www/owncloud/
Step 6: Configure Apache for OwnCloud
$ sudo vim /etc/apache2/conf-available/owncloud.conf
Add the configuration below.
Save and close the file.
Next, you need to enable all the required Apache modules and the newly added configuration by running the commands below:
sudo a2enconf owncloud
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime
For the changes to come into effect restart the Apache webserver.
$ sudo systemctl restart apache2
Step 7: Check On Browser http://localhost/owncloud
Step 8 : Now you have to change owncloud localhost ip from 127.0.0.1 to your server Ip address.
so that owncloud desktop client user could able to access server otherwise they will got below error.
Failed to connect to ownCloud at http://100.100.7.226/owncloud/
Server replied “404/NotFound” to "GET http://100.100.7.226/owncloud/"
$ sudo vim /var/www/owncloud/config/config.php
Step 9: Mount another separate disk for owncloud data directory. (Optional)
Note : Before mounting owncloud data directory to with new disk.
Take backup of /var/www/owncloud/data directory first.
Please also read : How to mount new Disk
Step 10 ) Configure SMTP email Server for trigger on below actions. (Optional)
- New User Creation email
- Password reset emails
- Notifying users of new file shares
- Changes in files
- Activity notifications
Note : To configure an SMTP server, you can either update config/config.php or use the Graphical Email Configuration Wizard, which updates config/config.php for you.
Click In Top Right Corner >> Settings
In Navigation panel >> Email server
following information for setup en email server.
/var/www/owncloud/config/config.php
END !!
No comments:
Post a Comment
testing