server 安裝
client 安裝
yum install -y php-process php-pear php-process php-xml /etc/init.d/httpd restart wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/php-pear-1.9.4-12.el6.remi.1.noarch.rpm rpm -U php-pear-1.9.4-12.el6.remi.1.noarch.rpm wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm rpm -U php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm rpm -U php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm wget http://rpms.famillecollet.com/enterprise/6/remi/x86_64/php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm rpm -U php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm 這些已經抓到 http://163.30.142.8/x/rpm/ 可以直接用 wget http://163.30.142.8/x/rpm/php-pear-1.9.4-12.el6.remi.1.noarch.rpm rpm -U php-pear-1.9.4-12.el6.remi.1.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm rpm -U php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm rpm -U php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm rpm -U php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm 增加 owncloud.conf 於/etc/httpd/conf/ < Directory /var/www/html/owncloud> AllowOverride All < /Directory> === Server cd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo yum install owncloud === clinet cd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/isv:ownCloud:devel/CentOS_CentOS-6/isv:ownCloud:devel.repo yum install owncloud-client
=== 將owncloud安裝在/home/www目錄下 首先要建立/home/www目錄 cd /home mkdir www 讓www的目錄權限給apache chown apache.apache -R www 讓www的目錄權限是網頁 (當selinux啟動時) chcon -R -t httpd_sys_content_t /home/www 依照一般的安裝步驟進行owncloud的安裝 yum install -y php-process php-pear php-process php-xml /etc/init.d/httpd restart wget http://163.30.142.8/x/rpm/php-pear-1.9.4-12.el6.remi.1.noarch.rpm rpm -U php-pear-1.9.4-12.el6.remi.1.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm rpm -U php-pear-Net-Curl-1.2.5-6.el6.remi.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm rpm -U php-pear-MDB2-2.5.0-0.8.b5.el6.remi.noarch.rpm wget http://163.30.142.8/x/rpm/php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm rpm -U php-pear-MDB2-Driver-mysqli-1.5.0-0.7.b4.el6.remi.noarch.rpm cd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo yum install owncloud 將owncloud的程式移到/home/www cd /var/www/html mv owncloud /home/www 設定apache的alias 使用webmin 伺服器/ apache伺服器 預設的伺服器 別名與重新導向 從 /owncloud 導向 /home/www/owncloud
建立owncloud.conf
增加 owncloud.conf 於/etc/httpd/conf.d/
cd /etc/httpd/conf.d/
vi owncloud.conf
按下i,將底下複製
<Directory /home/www/owncloud>
AllowOverride All
</Directory>
按下:wq儲存
增加後重新啟動apache
/etc/init.d/httpd restart 到網頁 http://localhost/owncloud開始安裝啟用,請點選storage & database 進階設定
沒有留言:
張貼留言