You are not logged in.

#1 2018-01-16 00:06:06

surrealpie
Member
Registered: 2017-10-10
Posts: 7

nextcloud installation: syntax error in httpd nextcloud.conf

Hi, i followed the wiki for installation of nextcloud (https://wiki.archlinux.org/index.php/Nextcloud)

My apache web server works fine
I followed this section for enabling php in my apache server, with the second method called Using php-fpm and mod_proxy_fcgi

https://wiki.archlinux.org/index.php/Ap … Server#PHP

and i tested that php works with a test file with https://<ip-address>/test.php

Then I copied the nextcloud example configuration to httpd extra config directory

cp /etc/webapps/nextcloud/apache.example.conf /etc/httpd/conf/extra/nextcloud.conf

For php, i tried both with:

php, php-intl, php-gd, php-fpm

and

php71, php71-intl, php71-gd, php71-fpm

finally, after every try i get the following message from systemctl status httpd, when including extra/nextcloud.conf in httpd.conf:

systemctl status httpd
● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2018-01-15 18:43:10 EST; 19min ago
  Process: 15285 ExecStop=/usr/bin/httpd -k graceful-stop (code=exited, status=1/FAILURE)
  Process: 15288 ExecStart=/usr/bin/httpd -k start -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 15288 (code=exited, status=1/FAILURE)

Jan 15 18:43:10 vps166153.vps.ovh.ca systemd[1]: Started Apache Web Server.
Jan 15 18:43:10 vps166153.vps.ovh.ca httpd[15288]: AH00526: Syntax error on line 9 of /etc/httpd/conf/extra/nextcloud.conf:
Jan 15 18:43:10 vps166153.vps.ovh.ca httpd[15288]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Jan 15 18:43:10 vps166153.vps.ovh.ca systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 18:43:10 vps166153.vps.ovh.ca systemd[1]: httpd.service: Failed with result 'exit-code'.

Which is seems weird since i validated that php is working. Some help in debugging this please.

Offline

#2 2018-01-16 00:34:25

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: nextcloud installation: syntax error in httpd nextcloud.conf

Share your /etc/httpd/conf/extra/nextcloud.conf please?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2018-01-16 01:20:37

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: nextcloud installation: syntax error in httpd nextcloud.conf

Is this not expected?  As php is not being run as a module within httpd but the output of httpd is piped to a proxy and the result returned to httpd so php_admin_value is not recognized.

Offline

Board footer

Powered by FluxBB