您的位置:首页 > 其它

安装试用开源的个人云服务器owncloud

2013-08-05 15:20 387 查看


安装试用开源的个人云服务器owncloud

项目的源代码网址是:https://gitorious.org/owncloud

先下载下来,然后依次安装apache,php,具体的步骤在网址:http://owncloud.org/support/install/

OwnCoud的简要介绍:

(OwnCloud是一个基于Linux系统的开源云项目,允许用户建立自己的个人云服务器,目前功能包括文件分享、音乐存储、日历、联系人和书签共享等等。

OwnCloud业务人员称,“相比Dropbox和box.net,我们提供的服务更实惠,更安全,更方便管理,灵活性更强,十分适合商业用途。OwnCloud用户还可在自己的硬件和存储设备上实现文件同步和共享服务。”

通过Web浏览器或WebDAV,OwnCloud用户可随时随地访问自己的存储文件。OwnCloud还提供一个平台方便查看和同步所有设备上的联系人、日历和书签,允许直接在Web上进行基本编辑。另外,程序员还可通过开放的API添加功能。

据悉,一家新的商务公司正在改进OwnCloud的终端用户友好性,届时,OwnCloud个人云服务的设置和操作将变得更简单,使用更方便。该公司的CEO兼CTO由前SUSE/Novell高级副总裁MarkusRex担任。同时,OwnCloud项目创始人FrankKarlitschek也将继续为其提供服务。

在这个以云为导向的世界里,OwnCloud是唯一一个基于广阔开源平台的工具。也正因为这点与众不同之处,OwnCloud不仅方便企业管理数据和控制数据存储成本,同时也方便员工随时随地轻松访问数据。)

以下是详细的安装步骤:

Install

TorunownCloud,yourwebservermusthavethefollowinginstalled:php5(>=5.3),php5-jsonphp-xmlphp-mbstringphp5-zipphp5-gdAndasoptionaldependencies:php5-sqlite(>=3),curl,libcurl3,libcurl3-dev,php5-curl,php-pdo

apt-getinstallapache2php5php5-jsonphp-xmlphp-mbstringphp5-zipphp5-gd
apt-getinstallphp5-sqlitecurllibcurl3libcurl3-devphp5-curlphp-pdo



Youdon’tneedanyWebDAVsupportofyourwebserver(i.e.apache’smod_webdav)toaccessyourownClouddataviaWebDAV,ownCloudhasaWebDAVserverbuiltin.

1.Download

Lateststablerelease(4.0.5)

DownloadMD5

Latestdevelopmentrelease

Download

SyncClients

SyncClientsPage

2.Install

2.1.ExtractownCloudandcopytoyourwebserver

tar-xjfpath/to/downloaded/owncloud-x.x.x.tar.bz2


cp-rowncloud/path/to/your/webserver


2.2.Setthedirectorypermissions

Theownerofyourwebservermustowntheapps/,data/andconfig/directoriesinyourownCloudinstall.Youcandothisbyrunningthefollowingcommandfortheapps,dataandconfigdirectories:

chown-Rwww-data:www-data/path/to/your/owncloud/install/data


关键是上面这一步,如果服务器用的是apache,就把www-data:www-data改为apache:apache,如chown-Rapache:apache/var/www/html/owncloud/*

,然后就能正常访问了


Replace‘www-data:www-data’withtheuserandgroupoftheownerofyourwebserver.
Notethatthedata/directorywillonlybecreatedaftersetuphasrun(seebelow)andisnotpresentbydefaultinthetarballs.

2.3.Enable.htaccessandmod_rewriteifrunningapache

Ifyouarerunningtheapachewebserver,itisrecommendedthatyouenable.htaccessfilesasownCloudusesthemtoenhancesecurityandallowsyoutousewebfinger.Toenable.htaccessfilesyouneedtoensurethat‘AllowOverride’issetto‘All’inthe‘Directory
/var/www/’sectionofyourvirtualhostfile.Thisisusuallyin/etc/apache2/sites-enabled/000-default.Youshouldalsorun‘a2enmodrewrite’and‘a2enmodheaders’.Thenrestartapache:
serviceapache2restart
(forUbuntusystems).Inorderfor
themaximumuploadsizetobeconfigurable,the.htaccessfileintheowncloudfolderneedstobemadewritablebytheserver.

2.4.Followtheinstallwizard

OpenyourwebbrowserandnavigatetoyourownCloudinstance.IfyouareinstallingownCloudonthesamemachineasyouwillaccesstheinstallwizardfrom,theurlwillbe:
http://localhost/
(or
http://localhost/owncloud
Forbasicinstalls
werecommendSQLiteasitiseasytosetup(ownCloudwilldoitforyou).ForlargerinstallsyoushoulduseMySQLorPostgreSQL.ClickontheAdvancedoptionstoshowtheconfigurationoptions.YoumayenteradmincredentialsandletownCloudcreateitsown
databaseuser,orenterapreconfigureduser.
Ifyouarenotusingapacheasthewebserver,pleasesetthedatadirectorytoalocationoutsideofthedocumentroot.Seetheadvancedinstallsettings.

3.Finished!

LoginandstartusingownCloud!FormoredetailsonconfiguringyourownCloud,pleasevisittheSupportCentre.
IfyouplanonusingtheWebfingerappandyourownCloudinstallationisnotinthewebrootthenyou’llhavetomanuallylink/var/www/.well-knownto/path/to/your/owncloud/.well-known.

Upgrading

ToupgradeyourownCloudinstance,justreplacethefileswiththenewsetfromthedownload.Leavetheconfig/folderanddata/folderintacttopreserveyourdata.Theupgradewillhappenautomaticallywhenyoufirstlogin.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: