树莓派4 | 4.私有云搭建-owncloud
目录
一. Owncloud简介
OwnCloud 一款文件主机服务软件,就是我们平时使用的云存储,不过这是在自己主机的服务器上建立属于自己的私有云,OwnCloud 使用AGPLv3协议发布。本项目是基于PHP和SQLite,MySQL,Oracle或PostgreSQL数据库,所以它可以运行在所有的平台上
二.PHP7安装
2.1 配置源
1. 添加中科大源,将/etc/apt/sources.list修改如下所示:
pi@raspberrypi:~ $ cat /etc/apt/sources.list deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' # deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi |
2. 更新源
sudo apt-get update |
2.2 安装php
sudo apt-get install php7.0 |
2.3 安装依赖
sudo apt-get install php-mysql php-zip php-xml php-intl php-mbstring php-gd php-curl |
如果不安装依赖,在登录owncloud时会报一堆提示:模块未安装,如图所示
三.Apache2安装
3.1 安装apache2和依赖
sudo apt-get install apache2 |