FS#70748 - [nextcloud] remove optional dependency php_apache

Attached to Project: Community Packages
Opened by Markus (wolegis) - Friday, 07 May 2021, 09:31 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 17 May 2021, 17:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I like to recommend to remove php_apache from the list of optional dependencies. Due to the obligation to run nextcloud with its own user listing php_apache as an optional dependency doesn't make any sense anymore. Using php_apache would result in nextcloud code to be run with the same user that is used by apache itself (http). This is not desired.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 17 May 2021, 17:18 GMT
Reason for closing:  Won't fix
Additional comments about closing:  I returned ability to run nextcloud using php-apache with mod_itk.
Comment by David Runge (dvzrv) - Monday, 10 May 2021, 09:17 GMT
@wolegis: Thanks for the report.

Have you read this section of the wiki article [1] and used mod_itk [2]?
I'm aware, that the latter is not packaged in the official repositories yet, but @sergej promised to package it (*hint* *hint*) :)

[1] https://wiki.archlinux.org/title/Nextcloud#Apache
[2] https://aur.archlinux.org/packages/mod_itk/
Comment by Markus (wolegis) - Monday, 10 May 2021, 10:00 GMT
@dvzrv Well, kind of. I had already read the cited section. But the note at the end of this sections gave me the impression that this option is only for pain lovers.

For my personal Nextcloud installation I opted for nginx and uwsgi.

IMHO in addition to the initial request of this ticket I would also recommend to remove the mentioning of mod_php and mpm_itk altogether on the Wiki page. But that's off topic here.

(BTW Did you realize that mod_php is not really mentioned in this section. Only in the deterrence note.)

The whole Nextcloud wiki page is a convoluted and confusing mess. It was hastily updated very frequently during the turmoil caused by the breaking changes of the Nextcloud package between version 20 and version 21.

If I had the time I would try to cleanup and streamline the wiki page - and maybe I will find this time in the future. Currently I'm trying to adopt an abandonned AUR package (grav). I had a closer look at the Nextcloud package since from a technical POV these two web applications share some similarities. That's why I created this ticket.
Comment by David Runge (dvzrv) - Monday, 10 May 2021, 10:09 GMT
> But the note at the end of this sections gave me the impression that this option is only for pain lovers.

As I haven't used apache in years, I can't really comment on that, but from a security and configurability standpoint I would also choose nginx over apache any day of the year.

> The whole Nextcloud wiki page is a convoluted and confusing mess. It was hastily updated very frequently during the turmoil caused by the breaking changes of the Nextcloud package between version 20 and version 21.

I agree. Given the information that was there before, it is already better though.
I have tried to establish a similar documentation style to e.g. the page for postfixadmin [1], as the information in the nextcloud article is partially outdated and all over the place.
At least the horror recommendations of "chown half your filesystem to the http user" are gone...

If you intend to improve the page, please come and find me in #archlinux-wiki on freenode and we can discuss things.

[1] https://wiki.archlinux.org/title/PostfixAdmin
Comment by Sergej Pupykin (sergej) - Saturday, 15 May 2021, 18:19 GMT
I've moved mod_itk back to community and updated apache config example in community-testing/nextcloud

Loading...