You are not logged in.

#1 2017-02-22 19:23:30

toco
Member
Registered: 2015-08-16
Posts: 21
Website

error with php_admin_value open_basedir

Hey I've searched already in G and here around, but didn't found my problem...

 
AH00526: Syntax error on line 9 of /etc/httpd/conf/extra/nextcloud.conf:
Feb 22 20:21:40 blabla httpd[22881]: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
Feb 22 20:21:40 blabla systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE

what could be the issue? I don't get it smile thank you!

Offline

#2 2017-02-22 19:43:33

rdeckard
Wiki Maintainer
Registered: 2015-01-28
Posts: 137

Re: error with php_admin_value open_basedir

Judging by the error message, I'm guessing there's a problem with line 9 in "/etc/httpd/conf/extra/nextcloud.conf". smile

Please post the contents of that file.

Offline

#3 2017-02-23 12:45:34

toco
Member
Registered: 2015-08-16
Posts: 21
Website

Re: error with php_admin_value open_basedir

Oh its a realy not the problem, I tried other software with open_basedir variable, phpmyadmin, dokuwiki, all the packages are native installed to a new small server system, in each case the apache tells me the same error. I think I've to find the problem in php.ini or httpd.conf. It's not my first LAMP in Arch and Linux at all, so I'm confused.
I head already a sight on the Changelog of the new PHP 7.1.2 package but didn't found anything...

just in case...

[root@xyz ~]# cat /etc/httpd/conf/extra/nextcloud.conf
<IfModule mod_alias.c>
    Alias /nextcloud /usr/share/webapps/nextcloud/
</IfModule>

<Directory /usr/share/webapps/nextcloud/>
    Options FollowSymlinks
    AllowOverride all
    Require all granted
    php_admin_value open_basedir "/srv/http/:/dev/urandom:/tmp/:/usr/share/pear/:/usr/share/webapps/nextcloud/:/etc/webapps/nextcloud"
</Directory>

<VirtualHost *:80> #(onyl for testing)
    ServerAdmin foo@xyz.xyz
    DocumentRoot /usr/share/webapps/nextcloud
    ServerName mc.xyz.xyz
    ErrorLog /var/log/httpd/nextcloud.xyz.info-error_log
    CustomLog /var/log/httpd/nextcloud.xyz.info-access_log common
</VirtualHost>

Last edited by toco (2017-02-23 12:46:53)

Offline

#4 2017-02-23 13:05:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: error with php_admin_value open_basedir

Is php working at all?  Just a simple php test page (not some big CMS)?

I'm not sure what the dollar sign at the end of the open_basedir value is - I've seen that in wordpress configs, but in that case it is separated from the last path with another ':'.  But I'd agree that the error is suggesting the php_admin_value is the problem indicating that php is not fully/properly configured.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-02-23 16:55:30

toco
Member
Registered: 2015-08-16
Posts: 21
Website

Re: error with php_admin_value open_basedir

okay found the problem, but its to silly to tell... forgot to include php at all ^^ sorry!

Last edited by toco (2017-02-23 17:02:00)

Offline

Board footer

Powered by FluxBB