Own cloud

Pre req:

web server (nginx)
mysql server
After Pre req have been installed, now we go to install owncloud. Download owncloud’s repo from here.

Install Owncloud

[root@klaud ~]# cd /tmp/
[root@klaud ~]# wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo
[root@klaud ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@klaud ~]# yum install owncloud

Create OwnCloud’s database

[root@klaud ~]# mysql -u root -p
Enter password:
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE owncld;
mysql> grant all on owncld.* to 'owncloud'@'localhost' IDENTIFIED BY 'owncloud_password';

Edit File php.ini and nginx

[root@klaud ~]# vim /etc/php.ini
file_uploads = On
upload_max_filesize = 8M ~> 2G // change quota from 8MB into 2 GB
post_max_size = 8M ~> 2G // change quota from 8MB into 2 GB
date.timezone = Asia/Jakarta
extension_dir = "/usr/lib64/php/modules/" // because i use centOs x86_64


[root@klaud ~]# vim /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name localhost; //Our name server
location ~ ^(.+?\.php)(/.*)?$ {
try_files $1 = 404;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$1;
fastcgi_param PATH_INFO $2;
fastcgi_param HTTPS on;
fastcgi_pass unix:/var/run/php5-fpm.sock;


Open localhost via browser

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>