noel0217 发表于 2017-12-23 22:49:40

CentOS利用nginx和php-fpm搭建owncloud私有云

  1.安装owncloud
  CentOS下有一键安装命令
  

yum install owncloud  

  默认配置目录: /etc/owncloud
  默认内容目录: /usr/share/owncloud
  2.安装配置nginx
  

yum install nginx  

  
service nginx start
  

  
chkconfig nginx on
  

  修改nginx配置,添加:
  

location ~ .*\.php$ {  fastcgi_pass   
127.0.0.1:9000;  
}
  

  修改nginx目录为owncloud
  

#      root         /usr/share/nginx/html;  root         
/usr/share/owncloud;  

  3.安装php-fpm
  

yum install php-fpm  

  
service php
-fpm start  

  
chkconfig php
-fpm on  

  最后登录浏览器测试

imissmylove 发表于 2018-1-26 12:36:30

Thanks for sharing!!!!!

wiseant 发表于 2018-8-1 22:03:57

多谢分享!

zhy1022wo 发表于 2018-10-17 13:38:53

谢谢分享!
页: [1]
查看完整版本: CentOS利用nginx和php-fpm搭建owncloud私有云