Setup your ownCloud


ownCloud https://owncloud.org/ is a free Open Source software, used to setup your own personal cloud for the purpose of file data sharing, Contact and Bookmark other Personal Audio/Video Streaming. The setup installation and management is very easy.
Steps to install owncloud 
Here I  am using Cent OS server to setup ownCloud. My testbox details are given below.
Operating system: Cent OS 
IP Address: 192.168.10.100 
When it was tested on Cent OS  it may be apply for other RPM based OS.
Install LAMP (Linux APACHE MySql PHP) .

Install following necessary PHP extensions:
# yum install php-mysql php-json php-xml php-mbstring php-zip php-gd curl php-curl php-pdo
Setting up database for ownCloud
Now create a database name called ‘ownclouddb’ and database user ‘ownclouduser’ with passwor ‘cent’.
# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 66
Server version: 5.5.34-MariaDB MariaDB Server

Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE ownclouddb;
Query OK, 1 row affected (0.04 sec)

MariaDB [(none)]> GRANT ALL ON ownclouddb.* TO ownclouduser@localhost IDENTIFIED BY 'centos';
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> exit
Bye
Getting owncloud
Switch to your apache root folder and download ownCloud latest version
Goto to Apache root document folder and download the latest version of owncloud.
# wget http://download.owncloud.org/community/owncloud-6.0.0a.tar.bz2
Extract the tar package using command:
# tar xvf owncloud-6.0.0a.tar.bz2
Move the extracted folder to your apache root folder (i.e /var/www/html/)
# mv owncloud/ /var/www/html/
Set the ownership and permissions to the following folders:
# chown -R apache:apache /var/www/html/owncloud/
# chmod 777 /var/www/html/owncloud/config/
Enable apache rewrite mode.
Edit file “/etc/httpd/conf/httpd.conf”,
# vi /etc/httpd/conf/httpd.conf
Find the following section and Change AllowOverride None to Allowoverride All.
[...]
     AllowOverride All
[...]
Finally, restart the apachehttpd and mysql services.
# service mysql restart
# service httpd restart
Begin ownCloud Installation
Navigate to http://ip-address/owncloud from your web browser. 


Previous Post
Next Post
Related Posts