1.安裝owncloud

    CENTOS6已經可以透過RPM檔案安裝了,目前預設套件版本是 4.5.13-1.el6,

    如果要安裝最新的版本請由 http://doc.owncloud.org/找尋最新版本下載安裝

   無法使用yum安裝時,請先設定其套件庫位置

  cd /etc/yum.repos.d/

   wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo

   yum install owncloud

 

以下為安裝範例:

[root@dns conf]# yum -y install owncloud
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: ftp.tc.edu.tw
* elrepo: repos.lax-noc.com
* epel: mirrors.vinahost.vn
* extras: ftp.tc.edu.tw
* rpmforge: mirror.oscc.org.my
* updates: ftp.tc.edu.tw
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package owncloud.noarch 0:4.5.13-1.el6 will be installed
--> Processing Dependency: owncloud-webserver = 4.5.13-1.el6 for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: owncloud-database = 4.5.13-1.el6 for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: policycoreutils-python for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: policycoreutils-python for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-phpass for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(pear.dropbox-php.com/Dropbox) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(XML_Parser) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(Sabre_CardDAV) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(Sabre_CalDAV) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(Net_Curl) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-pear(Crypt_Blowfish) for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-ldap for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-getid3 for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-cloudfiles for package: owncloud-4.5.13-1.el6.noarch
--> Processing Dependency: php-PHPMailer for package: owncloud-4.5.13-1.el6.noarch
--> Running transaction check
---> Package owncloud-httpd.noarch 0:4.5.13-1.el6 will be installed
---> Package owncloud-mysql.noarch 0:4.5.13-1.el6 will be installed
---> Package php-PHPMailer.noarch 0:5.2.2-1.el6 will be installed
---> Package php-cloudfiles.noarch 0:1.7.11-2.el6 will be installed
---> Package php-dropbox-php-Dropbox.noarch 0:1.0.0-4.el6 will be installed
--> Processing Dependency: php-pecl(oauth) for package: php-dropbox-php-Dropbox-1.0.0-4.el6.noarch
--> Processing Dependency: php-pear(HTTP_OAuth) for package: php-dropbox-php-Dropbox-1.0.0-4.el6.noarch
--> Processing Dependency: php-channel(pear.dropbox-php.com) for package: php-dropbox-php-Dropbox-1.0.0-4.el6.noarch
---> Package php-getid3.noarch 1:1.9.7-1.el6 will be installed
---> Package php-ldap.x86_64 0:5.3.3-23.el6_4 will be installed
---> Package php-pear-Crypt-Blowfish.noarch 0:1.1.0-0.4.rc2.el6 will be installed
---> Package php-pear-Net-Curl.noarch 0:1.2.5-4.el6 will be installed
---> Package php-pear-XML-Parser.noarch 0:1.3.4-1.el6 will be installed
---> Package php-phpass.noarch 0:0.3-2.el6 will be installed
---> Package php-sabredav-Sabre_CalDAV.noarch 0:1.6.4-3.el6 will be installed
--> Processing Dependency: php-pear(pear.sabredav.org/Sabre_VObject) for package: php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch
--> Processing Dependency: php-pear(pear.sabredav.org/Sabre_DAVACL) for package: php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch
--> Processing Dependency: php-pear(pear.sabredav.org/Sabre_DAV) for package: php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch
--> Processing Dependency: php-pear(pear.sabredav.org/Sabre) for package: php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch
--> Processing Dependency: php-channel(pear.sabredav.org) for package: php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch
---> Package php-sabredav-Sabre_CardDAV.noarch 0:1.6.5-2.el6 will be installed
---> Package policycoreutils-python.x86_64 0:2.0.83-19.30.el6 will be installed
--> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-19.30.el6.x86_64
--> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-19.30.el6.x86_64
--> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-19.30.el6.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.2-2.el6 will be installed
---> Package libsemanage-python.x86_64 0:2.0.43-4.2.el6 will be installed
---> Package php-channel-dropbox-php.noarch 0:1.3-3.el6 will be installed
---> Package php-channel-sabredav.noarch 0:1.3-3.el6 will be installed
---> Package php-pear-HTTP-OAuth.noarch 0:0.2.2-1.el6 will be installed
--> Processing Dependency: php-pear(HTTP_Request2) >= 0.5.1 for package: php-pear-HTTP-OAuth-0.2.2-1.el6.noarch
--> Processing Dependency: php-pear(Cache_Lite) for package: php-pear-HTTP-OAuth-0.2.2-1.el6.noarch
---> Package php-pecl-oauth.x86_64 0:1.2.3-1.el6 will be installed
---> Package php-sabredav-Sabre.noarch 0:1.0.0-9.el6 will be installed
---> Package php-sabredav-Sabre_DAV.noarch 0:1.6.5-5.el6 will be installed
--> Processing Dependency: php-pear(pear.sabredav.org/Sabre_HTTP) for package: php-sabredav-Sabre_DAV-1.6.5-5.el6.noarch
---> Package php-sabredav-Sabre_DAVACL.noarch 0:1.6.0-3.el6 will be installed
---> Package php-sabredav-Sabre_VObject.noarch 0:1.3.5-2.el6 will be installed
---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed
--> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64
--> Running transaction check
---> Package php-pear-Cache-Lite.noarch 0:1.7.12-1.el6 will be installed
---> Package php-pear-HTTP-Request2.noarch 0:0.5.2-2.el6 will be installed
--> Processing Dependency: php-pear(Net_URL2) >= 0.2.0 for package: php-pear-HTTP-Request2-0.5.2-2.el6.noarch
---> Package php-sabredav-Sabre_HTTP.noarch 0:1.6.4-3.el6 will be installed
---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed
--> Running transaction check
---> Package php-pear-Net-URL2.noarch 0:0.3.1-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================================================================
Package Arch Version Repository Size
===========================================================================================================================================================================================================================================
Installing:
owncloud noarch 4.5.13-1.el6 epel 3.8 M
Installing for dependencies:
audit-libs-python x86_64 2.2-2.el6 base 59 k
libsemanage-python x86_64 2.0.43-4.2.el6 base 81 k
owncloud-httpd noarch 4.5.13-1.el6 epel 6.3 k
owncloud-mysql noarch 4.5.13-1.el6 epel 6.3 k
php-PHPMailer noarch 5.2.2-1.el6 epel 474 k
php-channel-dropbox-php noarch 1.3-3.el6 epel 4.3 k
php-channel-sabredav noarch 1.3-3.el6 epel 4.3 k
php-cloudfiles noarch 1.7.11-2.el6 epel 31 k
php-dropbox-php-Dropbox noarch 1.0.0-4.el6 epel 20 k
php-getid3 noarch 1:1.9.7-1.el6 epel 420 k
php-ldap x86_64 5.3.3-23.el6_4 updates 38 k
php-pear-Cache-Lite noarch 1.7.12-1.el6 epel 40 k
php-pear-Crypt-Blowfish noarch 1.1.0-0.4.rc2.el6 epel 23 k
php-pear-HTTP-OAuth noarch 0.2.2-1.el6 epel 65 k
php-pear-HTTP-Request2 noarch 0.5.2-2.el6 epel 62 k
php-pear-Net-Curl noarch 1.2.5-4.el6 epel 13 k
php-pear-Net-URL2 noarch 0.3.1-2.el6 epel 13 k
php-pear-XML-Parser noarch 1.3.4-1.el6 epel 24 k
php-pecl-oauth x86_64 1.2.3-1.el6 epel 55 k
php-phpass noarch 0.3-2.el6 epel 8.8 k
php-sabredav-Sabre noarch 1.0.0-9.el6 epel 7.2 k
php-sabredav-Sabre_CalDAV noarch 1.6.4-3.el6 epel 48 k
php-sabredav-Sabre_CardDAV noarch 1.6.5-2.el6 epel 36 k
php-sabredav-Sabre_DAV noarch 1.6.5-5.el6 epel 109 k
php-sabredav-Sabre_DAVACL noarch 1.6.0-3.el6 epel 41 k
php-sabredav-Sabre_HTTP noarch 1.6.4-3.el6 epel 30 k
php-sabredav-Sabre_VObject noarch 1.3.5-2.el6 epel 46 k
policycoreutils-python x86_64 2.0.83-19.30.el6 base 342 k
setools-libs x86_64 3.3.7-4.el6 base 400 k
setools-libs-python x86_64 3.3.7-4.el6 base 222 k

Transaction Summary
===========================================================================================================================================================================================================================================
Install 31 Package(s)

Total download size: 6.5 M
Installed size: 30 M
Downloading Packages:
(1/31): audit-libs-python-2.2-2.el6.x86_64.rpm | 59 kB 00:00
(2/31): libsemanage-python-2.0.43-4.2.el6.x86_64.rpm | 81 kB 00:00
(3/31): owncloud-4.5.13-1.el6.noarch.rpm | 3.8 MB 00:12
(4/31): owncloud-httpd-4.5.13-1.el6.noarch.rpm | 6.3 kB 00:00
(5/31): owncloud-mysql-4.5.13-1.el6.noarch.rpm | 6.3 kB 00:00
(6/31): php-PHPMailer-5.2.2-1.el6.noarch.rpm | 474 kB 00:01
(7/31): php-channel-dropbox-php-1.3-3.el6.noarch.rpm | 4.3 kB 00:00
(8/31): php-channel-sabredav-1.3-3.el6.noarch.rpm | 4.3 kB 00:00
(9/31): php-cloudfiles-1.7.11-2.el6.noarch.rpm | 31 kB 00:00
(10/31): php-dropbox-php-Dropbox-1.0.0-4.el6.noarch.rpm | 20 kB 00:00
(11/31): php-getid3-1.9.7-1.el6.noarch.rpm | 420 kB 00:01
(12/31): php-ldap-5.3.3-23.el6_4.x86_64.rpm | 38 kB 00:00
(13/31): php-pear-Cache-Lite-1.7.12-1.el6.noarch.rpm | 40 kB 00:00
(14/31): php-pear-Crypt-Blowfish-1.1.0-0.4.rc2.el6.noarch.rpm | 23 kB 00:00
(15/31): php-pear-HTTP-OAuth-0.2.2-1.el6.noarch.rpm | 65 kB 00:00
(16/31): php-pear-HTTP-Request2-0.5.2-2.el6.noarch.rpm | 62 kB 00:00
(17/31): php-pear-Net-Curl-1.2.5-4.el6.noarch.rpm | 13 kB 00:00
(18/31): php-pear-Net-URL2-0.3.1-2.el6.noarch.rpm | 13 kB 00:00
(19/31): php-pear-XML-Parser-1.3.4-1.el6.noarch.rpm | 24 kB 00:00
(20/31): php-pecl-oauth-1.2.3-1.el6.x86_64.rpm | 55 kB 00:00
(21/31): php-phpass-0.3-2.el6.noarch.rpm | 8.8 kB 00:00
(22/31): php-sabredav-Sabre-1.0.0-9.el6.noarch.rpm | 7.2 kB 00:00
(23/31): php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch.rpm | 48 kB 00:00
(24/31): php-sabredav-Sabre_CardDAV-1.6.5-2.el6.noarch.rpm | 36 kB 00:00
(25/31): php-sabredav-Sabre_DAV-1.6.5-5.el6.noarch.rpm | 109 kB 00:00
(26/31): php-sabredav-Sabre_DAVACL-1.6.0-3.el6.noarch.rpm | 41 kB 00:00
(27/31): php-sabredav-Sabre_HTTP-1.6.4-3.el6.noarch.rpm | 30 kB 00:00
(28/31): php-sabredav-Sabre_VObject-1.3.5-2.el6.noarch.rpm | 46 kB 00:00
(29/31): policycoreutils-python-2.0.83-19.30.el6.x86_64.rpm | 342 kB 00:00
(30/31): setools-libs-3.3.7-4.el6.x86_64.rpm | 400 kB 00:00
(31/31): setools-libs-python-3.3.7-4.el6.x86_64.rpm | 222 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 273 kB/s | 6.5 MB 00:24
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-channel-sabredav-1.3-3.el6.noarch 1/31
Installing : php-sabredav-Sabre-1.0.0-9.el6.noarch 2/31
Installing : php-sabredav-Sabre_VObject-1.3.5-2.el6.noarch 3/31
Installing : php-sabredav-Sabre_HTTP-1.6.4-3.el6.noarch 4/31
Installing : php-sabredav-Sabre_DAV-1.6.5-5.el6.noarch 5/31
Installing : php-sabredav-Sabre_DAVACL-1.6.0-3.el6.noarch 6/31
Installing : php-sabredav-Sabre_CardDAV-1.6.5-2.el6.noarch 7/31
Installing : php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch 8/31
Installing : libsemanage-python-2.0.43-4.2.el6.x86_64 9/31
Installing : php-pear-Net-Curl-1.2.5-4.el6.noarch 10/31
Installing : php-cloudfiles-1.7.11-2.el6.noarch 11/31
Installing : php-channel-dropbox-php-1.3-3.el6.noarch 12/31
Installing : php-pear-Crypt-Blowfish-1.1.0-0.4.rc2.el6.noarch 13/31
Installing : php-pear-Cache-Lite-1.7.12-1.el6.noarch 14/31
Installing : php-pecl-oauth-1.2.3-1.el6.x86_64 15/31
Installing : php-PHPMailer-5.2.2-1.el6.noarch 16/31
Installing : php-phpass-0.3-2.el6.noarch 17/31
Installing : 1:php-getid3-1.9.7-1.el6.noarch 18/31
Installing : setools-libs-3.3.7-4.el6.x86_64 19/31
Installing : setools-libs-python-3.3.7-4.el6.x86_64 20/31
Installing : php-pear-XML-Parser-1.3.4-1.el6.noarch 21/31
Installing : php-pear-Net-URL2-0.3.1-2.el6.noarch 22/31
Installing : php-pear-HTTP-Request2-0.5.2-2.el6.noarch 23/31
Installing : php-pear-HTTP-OAuth-0.2.2-1.el6.noarch 24/31
Installing : php-dropbox-php-Dropbox-1.0.0-4.el6.noarch 25/31
Installing : php-ldap-5.3.3-23.el6_4.x86_64 26/31
Installing : audit-libs-python-2.2-2.el6.x86_64 27/31
Installing : policycoreutils-python-2.0.83-19.30.el6.x86_64 28/31
Installing : owncloud-httpd-4.5.13-1.el6.noarch 29/31
Installing : owncloud-mysql-4.5.13-1.el6.noarch 30/31
Installing : owncloud-4.5.13-1.el6.noarch 31/31
Verifying : php-sabredav-Sabre_DAV-1.6.5-5.el6.noarch 1/31
Verifying : audit-libs-python-2.2-2.el6.x86_64 2/31
Verifying : php-ldap-5.3.3-23.el6_4.x86_64 3/31
Verifying : setools-libs-python-3.3.7-4.el6.x86_64 4/31
Verifying : php-sabredav-Sabre_CardDAV-1.6.5-2.el6.noarch 5/31
Verifying : php-pear-Net-URL2-0.3.1-2.el6.noarch 6/31
Verifying : php-pear-XML-Parser-1.3.4-1.el6.noarch 7/31
Verifying : php-dropbox-php-Dropbox-1.0.0-4.el6.noarch 8/31
Verifying : owncloud-4.5.13-1.el6.noarch 9/31
Verifying : setools-libs-3.3.7-4.el6.x86_64 10/31
Verifying : 1:php-getid3-1.9.7-1.el6.noarch 11/31
Verifying : php-phpass-0.3-2.el6.noarch 12/31
Verifying : php-sabredav-Sabre_VObject-1.3.5-2.el6.noarch 13/31
Verifying : php-PHPMailer-5.2.2-1.el6.noarch 14/31
Verifying : php-sabredav-Sabre_CalDAV-1.6.4-3.el6.noarch 15/31
Verifying : php-pecl-oauth-1.2.3-1.el6.x86_64 16/31
Verifying : php-pear-Cache-Lite-1.7.12-1.el6.noarch 17/31
Verifying : php-pear-Crypt-Blowfish-1.1.0-0.4.rc2.el6.noarch 18/31
Verifying : php-sabredav-Sabre_HTTP-1.6.4-3.el6.noarch 19/31
Verifying : policycoreutils-python-2.0.83-19.30.el6.x86_64 20/31
Verifying : php-pear-HTTP-OAuth-0.2.2-1.el6.noarch 21/31
Verifying : php-channel-dropbox-php-1.3-3.el6.noarch 22/31
Verifying : php-pear-HTTP-Request2-0.5.2-2.el6.noarch 23/31
Verifying : owncloud-httpd-4.5.13-1.el6.noarch 24/31
Verifying : php-cloudfiles-1.7.11-2.el6.noarch 25/31
Verifying : php-channel-sabredav-1.3-3.el6.noarch 26/31
Verifying : owncloud-mysql-4.5.13-1.el6.noarch 27/31
Verifying : php-sabredav-Sabre-1.0.0-9.el6.noarch 28/31
Verifying : php-pear-Net-Curl-1.2.5-4.el6.noarch 29/31
Verifying : libsemanage-python-2.0.43-4.2.el6.x86_64 30/31
Verifying : php-sabredav-Sabre_DAVACL-1.6.0-3.el6.noarch 31/31

Installed:
owncloud.noarch 0:4.5.13-1.el6

Dependency Installed:
audit-libs-python.x86_64 0:2.2-2.el6 libsemanage-python.x86_64 0:2.0.43-4.2.el6 owncloud-httpd.noarch 0:4.5.13-1.el6 owncloud-mysql.noarch 0:4.5.13-1.el6
php-PHPMailer.noarch 0:5.2.2-1.el6 php-channel-dropbox-php.noarch 0:1.3-3.el6 php-channel-sabredav.noarch 0:1.3-3.el6 php-cloudfiles.noarch 0:1.7.11-2.el6
php-dropbox-php-Dropbox.noarch 0:1.0.0-4.el6 php-getid3.noarch 1:1.9.7-1.el6 php-ldap.x86_64 0:5.3.3-23.el6_4 php-pear-Cache-Lite.noarch 0:1.7.12-1.el6
php-pear-Crypt-Blowfish.noarch 0:1.1.0-0.4.rc2.el6 php-pear-HTTP-OAuth.noarch 0:0.2.2-1.el6 php-pear-HTTP-Request2.noarch 0:0.5.2-2.el6 php-pear-Net-Curl.noarch 0:1.2.5-4.el6
php-pear-Net-URL2.noarch 0:0.3.1-2.el6 php-pear-XML-Parser.noarch 0:1.3.4-1.el6 php-pecl-oauth.x86_64 0:1.2.3-1.el6 php-phpass.noarch 0:0.3-2.el6
php-sabredav-Sabre.noarch 0:1.0.0-9.el6 php-sabredav-Sabre_CalDAV.noarch 0:1.6.4-3.el6 php-sabredav-Sabre_CardDAV.noarch 0:1.6.5-2.el6 php-sabredav-Sabre_DAV.noarch 0:1.6.5-5.el6
php-sabredav-Sabre_DAVACL.noarch 0:1.6.0-3.el6 php-sabredav-Sabre_HTTP.noarch 0:1.6.4-3.el6 php-sabredav-Sabre_VObject.noarch 0:1.3.5-2.el6 policycoreutils-python.x86_64 0:2.0.83-19.30.el6
setools-libs.x86_64 0:3.3.7-4.el6 setools-libs-python.x86_64 0:3.3.7-4.el6

Complete!
[root@dns conf]#

2.設定 /etc/httpd/conf.d/owncloud.conf (6.0.0a略過此步驟)

   安裝完成預設只能由本機localhost執行,修改使其能讓其他IP位置連線

   原本內容如下:

Alias /owncloud /usr/share/owncloud

<Directory /usr/share/owncloud/>
Options -Indexes

<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
</IfModule>

ErrorDocument 404 /core/templates/404.php

php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 512M
SetEnv htaccessWorking true

RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
</Directory>

   修改為:

Alias /owncloud /usr/share/owncloud

<Directory /usr/share/owncloud/>
Options -Indexes

<IfModule mod_authz_core.c>
# Apache 2.4
Require local
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
#Deny from all
#Allow from 127.0.0.1
#Allow from ::1
Allow from all
</IfModule>

ErrorDocument 404 /core/templates/404.php

php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 512M
SetEnv htaccessWorking true

RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
</Directory>

3.重啟動apache

   service httpd restart

 

4.設定管理者帳號與資料庫

   第一次連線執行會要求建立管理者帳號與設定資料庫,中文語系預設為簡體中文

   .先輸入管理者賬戶

     例如:

           用戶名:admin

           密碼:yourPwd

   .再點選進階 輸入使用的資料庫類別與連線資訊

          數據存放資料夾:/var/lib/owncloud/data  #此為預設值

          配置數據庫 假設使用MySQL

          數據庫用戶:root

          數據庫密碼:yorRootPwd

          數據庫用戶名:OWNCLOUD

          數據庫主機:localhost    #預設為本機

    以上輸入完後點選完成安裝,如果一切正常則可進入使用者介面

5.設定語系

   5.1點選頁面左下方齒輪圖樣

   5.2點選私人

   5.3語言下拉式選單拉到最後選擇台灣話

6.設定記錄檔

   6.1點選頁面左下方齒輪圖樣

   6.2點選管理

   6.3在最下方Log level下拉選單選擇Info

   

備註:

若安裝失敗要重新安裝時,需清除owncloud使用的資料庫與帳號

若需安裝owncloud desktop版本請執行下列步驟

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:desktop/CentOS_CentOS-6/isv:ownCloud:desktop.repo
yum install owncloud-client

參考資料:

http://doc.owncloud.org/server/5.0/admin_manual/installation/installation_linux.html

,

K 發表在 痞客邦 PIXNET 留言(0) 人氣()