Hi,
after I moved my wiki to a new server I realised, that the search was not working, so I installed Searchindex Manager to recreate the wiki's search index. After some hours, I reloaded the plugin's page and checked the apache logs. Here's what I found:
[Wed Feb 20 14:16:36.020865 2019] [php7:warn] [pid 1645] [client 172.16.24.78:64221] PHP Warning: realpath(): open_basedir restriction in effect. File(/var/lib) is not within the allowed path(s): (/tmp/:/usr/share/webapps/dokuwiki/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/) in /var/lib/dokuwiki/plugins/searchindex/ajax.php on line 14, referer: http://wiki.grecon.local/doku.php?id=start&do=admin&page=searchindex
[Wed Feb 20 14:16:36.021096 2019] [php7:warn] [pid 1645] [client 172.16.24.78:64221] PHP Warning: require_once(/inc/init.php): failed to open stream: No such file or directory in /var/lib/dokuwiki/plugins/searchindex/ajax.php on line 16, referer: http://wiki.grecon.local/doku.php?id=start&do=admin&page=searchindex
[Wed Feb 20 14:16:36.021120 2019] [php7:error] [pid 1645] [client 172.16.24.78:64221] PHP Fatal error: require_once(): Failed opening required '/inc/init.php' (include_path='.:') in /var/lib/dokuwiki/plugins/searchindex/ajax.php on line 16, referer: http://wiki.grecon.local/doku.php?id=start&do=admin&page=searchindex
It seem, the access to /var/lib/ fails, but why would the wiki access that? Can anyone tell me, what the problem might be? I am using the latest version of dokuwiki. Down below you'll find more information about my setup.
Thanks,
Torsten
I moved to Manjaro which has a directory structure in /usr/share/webapps/dokuwiki with following symbolic links:
.htaccess -> /etc/webapps/.htaccess
conf -> /etc/webapps/dokuwiki
data -> /var/lib/dokuwiki/data
lib/plugins -> /var/lib/dokuwiki/plugins
lib/tpl -> /var/lib/dokuwiki/tpl
Apache's directory configuration looks like this:
<Directory>
Options +FollowSymLinks
AllowOverride All
Require all granted
php_admin_value open_basedir "/tmp/:/usr/share/webapps/dokuwiki/:/etc/webapps/dokuwiki/:/var/lib/dokuwiki/"
</Directory>