引用:https://www.howtoforge.com/tutorial/how-to-install-nextcloud-with-nginx-and-php-fpm-on-centos-7/
注意:在LEDE上安装完毕之后访问web显示No inputfile specified。
解决:
// php.ini
cgi.force_redirect = 0
cgi.fix_pathinfo=1
doc_root=
另一个问题:竟然有的Linux发行版不带stat命令!这里我就不报名字了。通过php日志可以发现:command stat : stat not found !
遂安装stat即可解决。希望在编译php的时候添加以上依赖。我就是掉进了这个坑!
opkg install coreutils-stat
How to Install Nextcloud with Nginx and PHP7-FPM on CentOS 7
On this page
- Step 1 - Install Nginx and PHP7-FPM on CentOS 7
- Step 2 - Configure PHP7-FPM
- Step 3 - Install and Configure MariaDB
- Step 4 - Generate a Self-signed SSL Certificate for Nextcloud
- Step 5 - Download and Install Nextcloud
- Step 6 - Configure Nextcloud Virtual Host in Nginx
- Step 7 - Configure SELinux and FirewallD for Nextcloud
- Step 8 - Nextcloud Installation Wizard
- Reference
Nextcloud is a free (Open Source) Dropbox-like software, a fork of the ownCloud project. Nextcloud is written in PHP and JavaScript, it supports many database systems such as, MySQL/MariaDB, PostgreSQL, Oracle Database and SQLite. In order to keep your files synchronized between Desktop and your own server, Nextcloud provides applications for Windows, Linux and Mac desktops and a mobile app for android and iOS. Nextcloud is not just a dropbox clone, it provides additional features like Calendar, Contacts, Schedule tasks, and streaming media with Ampache.
In this tutorial, I will show you how to install and configure the latest Nextcloud 10 release on a CentOS 7 server. I will run Nextcloud with a Nginx web server and PHP7-FPM and use MariaDB as the database system.
Prerequisite
- CentOS 7 64bit
- Root privileges on the server