You can have either but not both, PHP as Apache HTTPD module or PHP as FPM, If you want to setup PHP-FPM on centos instead of PHP module or mod_php, and then PHP-FPM starts as an systemctl service, you will need to carry on those steps:
For me if I want to make any web app, I just simply go this route, back in the day I would make it faster by running Nginx, but most third party web apps expect apache, and I found out the by simply using PHP-FPM with Apache I can make the web app as responsive and fast as ever, and I never found scenario where that is not compatible, what you simply do is remove PHP being child of apache, and giving it daemon of its own with children, and it becomes very fast.
The setup on CentOS is different compare to Fedora 27.
Installing php also installs php-fpm.
[[email protected] hjohnson]# dnf install php
Last metadata expiration check: 2:30:05 ago on Wed 07 Feb 2018 08:46:00 AM MST.
Package Arch Version Repository Size
php x86_64 7.1.14-1.fc27 updates 2.8 M
nginx-filesystem noarch 1:1.12.1-1.fc27 fedora 20 k
php-cli x86_64 7.1.14-1.fc27 updates 4.2 M
php-common x86_64 7.1.14-1.fc27 updates 1.0 M
php-json x86_64 7.1.14-1.fc27 updates 72 k
Installing weak dependencies:
php-fpm x86_64 7.1.14-1.fc27 updates 1.5 M
And its already configured /etc/httpd/conf.d/php.conf
# Redirect to local php-fpm if mod_php is not available
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
Yup I noticed this with Fedora, and when I jump to Fedora , or when Centos gets updated to reach Fedora levels like in 3-5 years I will worry about that. I never reached scenario where I needed bleeding edge server, and if that is the case usually it is Ubuntu and not Fedora.
I forgot before: You can also login to the admin interface and looking at the settings page. It'll give you a list of performance and security optimizations with links to instructions on how to make the changes.
Yeah that's where this all started. It only states that I need to...
Modify/enable the HSTS header to at least 15552000 seconds
PHP OPcache not properly configured and to make changes to the php.ini.
From that though, I got to the hardening and security guide and started to go even deeper down the rabbit hole.
I know you're doing this to learn, so this probably isn't needed at the moment. @scottalanmiller's guide to installing NextCloud with Salt has all the settings correct already according to that settings page.
In the time you have spent digging, you could have created all 20 users.
Go here: http://passwordsgenerator.net/plus/
Generate passwords 0_1501532564772_1d7d06c7-4b01-4476-b190-7b45a37f7546-image.png
Set your default settings in Nextcloud (gear on bottom left) 0_1501532689678_87562b09-d58f-4993-9655-190aee22bd83-image.png
Create users entering email addresses and selecting groups as you go. 0_1501532767284_dd2f6c53-e4ea-4d77-93a9-1047910201bf-image.png
The Current is part of a VM, NextCloud would be a VM - Why could you not mount both?
How woudl that work? What would NextCloud do with a bunch of random files that have no metadata? They don't exist in the database, what would happen to them?
There's a command you can run that will take a list of files and make them available to a user, I think.
So one user would just get "everything." Or else it's a huge manual process.
Not exactly. Have you ever looked at the file structure of ownCloud/Nextcloud?
Basically in the /data folder there are subfolders per user. You would populate those with the files from the old file server. Then you pop into the CLI and issue this command to rescan the folders and put the stuff in the database.
sudo -u apache php occ files:scan --all -v
You can also do it per user.
I would not recommend ever doing this on an existing system that was not already hosed for some other reason.