[GUIDE] Owncloud

You need to upgrade php pakages.

That makes stop dashboard’s emal alert.

So if you need email alert, can’t install owncloud.

  1.  php upgrade

    /etc/apt/sources.list

    echo deb http://ftp.us.debian.org/debian/ jessie main >> /etc/apt/sources.list

    apt-get update

    apt-get install php5 php5-gd

    /etc/init.d/apache2 restart

    apt-get install php5-mcrypt php5-imagick

    /etc/init.d/apache2 restart

    nano /etc/php5/apache2/php.ini

Ctrl + w 

and type ‘timezone’


[Date]

; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone =  Asia/Seoul

 

 

------------------------------------------------------------------------------

and type like above

Ctrl + O , enter, Ctrl + W

/etc/init.d/apache2 restart

> /etc/apt/sources.list

echo deb http://ftp.us.debian.org/debian/ wheezy main >> /etc/apt/sources.list

apt-get update
  1. install owncloud (refer :  http://community.wd.com/t5/My-Book-Live/GUIDE-Installing-OwnCloud-Server-on-My-Book-Live/m-p/561699)

    cd /var/www/htdocs

    wget https://download.owncloud.com/download/community/setup-owncloud.php --no-check-certificate

    nano setup-owncloud.php

line 137, 139

need to change true to false


curl_setopt($ch, CURLOPT_CERTINFO,  TRUE );

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,  TRUE );



curl_setopt($ch, CURLOPT_CERTINFO,  FALSE );

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,  FALSE );


Ctrl + O , enter, Ctrl + W

chmod 755 setup-owncloud.php

chgrp www-data /var/www/htdocs

chmod g+w /var/www/htdocs

and  web browser : http://MC_IP/setup-owncloud.php

next

next

It takes time 5~10mins.

back to putty

nano /etc/apache2/sites-available/owncloud.conf

<Directory /var/www/htdocs/owncloud/>
AllowOverride All
Options +FollowSymLinks
</Directory>
<Directory /var/www/htdocs/owncloud/data>
Order deny,allow
Deny from all
</Directory>

 Ctrl + O , enter, Ctrl + W

a2ensite owncloud

service apache2 reload

chmod g-w /var/www/htdocs

service apache2 stop

mv /var/www/htdocs/owncloud/data /DataVolume/owncloud_data

chgrp www-data /DataVolume/owncloud_data

chmod 770 /DataVolume/owncloud_data

ln -s /DataVolume/owncloud_data /var/www/htdocs/owncloud/data

service apache2 start

Back to browser and enjoy it.

  1. remove owncloud

    a2dissite owncloud

    service apache2 reload

    rm -rf /var/www/htdocs/owncloud

    rm -rf /DataVolume/owncloud_data

and php downgrade - need to firmware upgrade.

That make intialize putty works.

3 Likes

It’s working well although a bit slow on my 2TB Mycloud,
Thanks

Great guide, but you sould tweak a little bit.

1)  I think you should do a backup from sources.list before anything

cp /etc/apt/sources.list /etc/apt/sources.list.bak

2)  My Cloud is pretty much worldwide, so I think you should only implement the timezone config at the end with all the regions as extra feature.

3)  Why did you put in this? I mean you don’t install anything else, so why do you need it? I am just curious.

echo deb http://ftp.us.debian.org/debian/ wheezy main >> /etc/apt/sources.list

apt-get update

3) line 137, 139  need to change true to false

Why? I did not put in it and is working fine.

4) And in the end you should restore the sources.list

mv -f /etc/apt/sources.list.bak /etc/apt/sources.list

5) I’ve install php-xml-parser, php5-intl, zlib1g too, that means owncloud is working without these too?

6) In my guide I used

echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list
What is the difference between wheezy and sid?

WD-Debunker wrote:


Pereirar wrote:
It’s working well although a bit slow on my 2TB Mycloud,
Thanks


It is an interesting HowTo, but the way it handles sources.list is very adventurous.

I would fear that due to lack of RAM the box might get stuck and lose connection?

 

 

That could be possible.

BullZeye wrote:

Great guide, but you sould tweak a little bit.

 

 

1)  I think you should do a backup from sources.list before anything

cp /etc/apt/sources.list /etc/apt/sources.list.bak

 

 

2)  My Cloud is pretty much worldwide, so I think you should only implement the timezone config at the end with all the regions as extra feature.

 

 

 

 

3)  Why did you put in this? I mean you don’t install anything else, so why do you need it? I am just curious.

echo deb http://ftp.us.debian.org/debian/ wheezy main >> /etc/apt/sources.list

apt-get update

 

 

3) line 137, 139  need to change true to false

Why? I did not put in it and is working fine.

 

 

4) And in the end you should restore the sources.list

mv -f /etc/apt/sources.list.bak /etc/apt/sources.list

 

5) I’ve install php-xml-parser, php5-intl, zlib1g too, that means owncloud is working without these too?

 

6) In my guide I used

echo deb http://ftp.us.debian.org/debian/ sid main >> /etc/apt/sources.list
What is the difference between wheezy and sid?

  1. sources.list is really simple.

actually It has just wheezy source.

  1. timezone =  http://php.net/date.timezone

  2. That is default source.

  3. In my case, I need that.

  4. = 3

  5. Yes.

  6. wheezy is current version.

jessie = next version

sid = experimental version.

WSGVET,

I am thinking of installing OwnCloud on the My Cloud EX2 and did some initial research on the requirements by running a phpinfo(). I am a newbie to php so it’ll take me a few weeks to figure out how to do it :slight_smile: But my question for you is - when you got OwnCloud to work, did you lose your My Cloud dashboard app? I am not sure if there will be conflicts in having two web apps on the server (in theory there shouldn’t be but not sure).

Thanks for your excellnt writeup - though I can’t use it as My Cloud’s codebase is different from the EX2’s codebase from what I have seen before.

A few questions…

What do you mean with

"and php downgrade - need to firmware upgrade.

That make intialize putty works."

Can Owncloud co-exist with the mycloud software (no need tos remove or disable mycloud)?  Is it both usable?

Are you satisfied with Owncloud on your mycloud?

The WD Dashboard email alerts still can work. Refer to this older thread here http://community.wd.com/t5/WD-My-Cloud/OwnCloud/td-p/679681/page/2

Works like a charm. Thank you very much.