Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#77122 - [nextcloud] occ wrapper: wrong php config?
Attached to Project:
Community Packages
Opened by Lex Black (TrialnError) - Saturday, 14 January 2023, 13:34 GMT
Last edited by David Runge (dvzrv) - Saturday, 14 January 2023, 23:51 GMT
Opened by Lex Black (TrialnError) - Saturday, 14 January 2023, 13:34 GMT
Last edited by David Runge (dvzrv) - Saturday, 14 January 2023, 23:51 GMT
|
DetailsDescription:
I updated the nextcloud and php packages today. I will note, that I switched to the php-legacy packages so nextcloud itself is running on php 8.1. php 8.2 is uninstalled and the config files are .pacsave. But the hook and issuing occ resulted in an error (no db connection possible) I looked into /usr/bin/occ and found those lines at the top of the file: ______ #!/usr/bin/env bash readonly default_config="/etc/php/php.ini" readonly default_php_command="/usr/bin/php-legacy" ______ default_php_command looks good, but the path to the config not. And changing this to php-legacy/php.ini fixed the issue. In and itself I can control the script with the respective environment vars, but shouldn't it work out of the box if there isn't any modification in regards to config locations done? Additional info: * nextcloud 25.0.2-2 Steps to reproduce: Unset any nextcloud related env vars and see if occ is still working. |
This task depends upon
Closed by David Runge (dvzrv)
Saturday, 14 January 2023, 23:51 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with nextcloud 25.0.2-4
Saturday, 14 January 2023, 23:51 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with nextcloud 25.0.2-4
After installing the uwsgi-plugin-php-legacy package, it created a file /usr/lib/uwsgi/php_legacy_plugin.so
I found an inconsistency in the file that came from the package /etc/uwsgi/nextcloud.ini.pacnew the parameter plugins = php-legacy with minus and not with underscacore(_, /usr/lib/uwsgi/php_legacy_plugin.so).
I managed to get occ working but but my website, it tells me that "This version of Nextcloud is not compatible with PHP>=8.2."
but no it didn't work.
https://cloud-dev.lli.be/
So from my side this can be closed.