Step 1: Install ownCloud Storage in Linux
In order to setup your own personal cloud storage (ownCloud), you must have LAMP (Linux, Apache,MySQL, PHP) stack installed. Other than LAMP stack you might need Perl and Python based upon your use.
On Debian/Ubuntu/Linux Mint
On RedHat/CentOS/Fedora
Step 2: Create Cloud Database
Once you setup LAMP stack on your personal box, just login to your database (MySQL, here).
Enter mysql root password. Now we will be creating a database (say cloud).
It is not a good idea to access your database from root, hence grant all the permission to a normal user (say tecmint).
Step 3: Download and Install ownCloud Application
Now its time to Download latest ownCloud (i.e version 8.0.0) application using below link.
Alternatively, you may use wget command to download the source tar-ball package.
You may alternatively install from source package using APT or YUM. The installation instruction can be found at:
However we choose the TAR package which is universally accepted and works on most of the known system.
After Downloading the owncloud package, move it to your Apache working directory, which is /var/www(for Debian) and /var/www/html (for RedHat).
Next, extract the package using tar command as shown below.
Since the TAR Archive is extracted you may remove the Archive.
We might need to change the file permission of owncloud, in our Apache working directory.
Note: Remember we are giving read, write and execute permission to all, which is although risky but this time needed since several configuration file would be written automatically. We later need to change permission to 755, once the setup is finished.
Step 4: Configuring Apache for ownCloud
For security purpose ownCloud uses Apache‘s .htaccess files, in order to use them. We need to enable two Apache modules mod_rewrite and mod_headers for ownCloud to function properly. Type the following command to enable these modules under Debian based systems only, for RedHat systems they are enabled by default.
Additionally, we need to enable mod_rewrite rules to work properly under Apache‘s main configuration file. Open the Apache global configuation file.
There, find “AllowOverride None” and change this to “AllowOverride All” as shown.
Change this to:
Now we need to restart Apache to reload new changes.
Step 5: Access ownCloud Application
Now you can acess your very personal cloud storage at:
Once you get the Owncloud page, you need to create an admin account and a Data folder location, where all files/folders will be stored (or leave default location i.e. /var/www/owncloud/data or/var/www/html/owncloud/data). Next, you need to enter mysql database username, password anddatabase name, refer the screenshot below.
Once all the correct values are entered, click Finish and your private cloud storage is ready, you are greeted with the working interface:
Notice the Favorites, edit, share, download, upload and new file options available for a file.
Activities log of oneself and others.
No comments:
Post a Comment