阿里云oss+nextcloud搭建云盘

服务器配置

一、安装pip

yum install pip php-xml gd php-posix

二、配置

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget https://dl.iuscommunity.org/pub/ius/stable/Redhat/7/x86_64/ius-release-1.0-14.ius.el7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
rpm -ivh ius-release-1.0-14.ius.e17.noarch.rpm
yum clean all
yum list

三、安装yum-plugin-replace包

yum install yum-plugin-replace

四、更新PHP 5.4.6至5.6,及补充包

yum install libtool-ltdl
yum install libvpx
yum replace php --replace-with php56u
yum install php56u-gd

五、安装服务器

yum install httpd

六、用ip访问,好,进不去,在阿里云控制台以及服务器放行80端口

# firewall-cmd --version
0.4.3.2
查看firewall防火墙的状态。提示正在运行。

# firewall-cmd --state
running
在firewall中添加80端口的权限。提示成功。

# firewall-cmd --zone=public --add-port=80/tcp --permanent
success
重启服务
# systemctl restart  firewalld

七、安装数据库,数据库当然选用Mysql

# yum install mariadb-server.x86_64
# systemctl start mariadb

八、安装phpmyadmin

上传到地方  
# cd /var/www/html/
# unzip phpMyAdmin-4.6.3-all-languages.zip
# yum install php70w-mbstring php70w-mysql
# systemctl restart httpd
解压完毕 然后浏览器地址栏输入 你的IP/phpMyAdmin

九、还是进不去,好用yum安 然后配置

#rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
#yum install phpmyadmin
配置phpmyadmin

vim /etc/httpd/conf.d/phpMyAdmin.conf
     
#       Require ip 127.0.0.1
 #      Require ip ::1
Require all granted
     
systemctl restart httpd

十、新建数据库 弄好用户

十一、从官网安装nextcloud,配置,访问ip/nextcloud

 # cd /var/www/html

  # chown apache nextcloud -Rf

  # chmod 770 nextcloud -Rf

十二、挂载ossfs

https://github.com/aliyun/ossfs


你可能感兴趣的:(阿里云oss+nextcloud搭建云盘)