安装前的准备
先搭建lnmp or lamp环境,因为owncloud是php+mysql的
第一
#下载 server包,并到它放到你想放的web目录下,
wget -c http://download.owncloud.org/community/owncloud-4.5.12.tar.bz2
#这个是在下的 nginx.conf
server
{
listen 80;
server_name owncloud.linuxchina.net;
index index.php;
root /var/www/owncloud;
client_max_body_size 1000M; # set maximum upload size
location ~ ^/remote.php(/.*)$ {
fastcgi_split_path_info ^(.+.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/tmp/php-cgi.sock;
include fcgi.conf;
}
# deny direct access
location ~ ^/(data|config|.ht|db_structure.xml|README) {
deny all;
}
# default try order
location / {
try_files $uri $uri/ @webdav;
}
# owncloud WebDAV
location @webdav {
fastcgi_split_path_info ^(.+.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/tmp/php-cgi.sock;
include fastcgi_params;
}
location ~ .*.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
}
create database owncloud;
域名生效后 或者绑hosts 后在 浏览器 打开
owncloud.linuxchina.net
开始安装
client http://software.opensuse.org/download/package?project=isv:ownCloud:devel&package=owncloud-client
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:devel/xUbuntu_12.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list
apt-get update
apt-get install owncloud-client
修改上传文件limit,期间也修改了/etc/php.ini
owncloud/.htaccess
php_value upload_max_filesize 10240M
php_value post_max_size 10240M
php_value memory_limit 2048M
SetEnv htaccessWorking true
##官方安装文档,必看
http://doc.owncloud.org/server/4.5/admin_manual/installation.html
一些问题的解决和参考资料
own 界面布局显示错乱处理
http://303i.com/article/2013/02/28/831.html
问题错误提示
https://github.com/owncloud/core/issues/108
MDB2 Error: connect failed: _doConnect:
MySQL user ‘oc_evan’@’localhost’ exists already.
Drop this user from MySQL
解决方法
Drop user USER@localhost
Drop user USER@’%’
所以,执行此命令就搞定了
mysql>Drop user oc_evan@localhost
(USER is the oc user name)
http://doc.owncloud.org/server/4.5/admin_manual/installation.html#nginx-configuration
http://jamyy.dyndns.org/blog/2012/06/3844.html
http://blog.csdn.net/wang1144/article/details/7802847