Hi,
I’ve installed on a hosted webserver (inmotionhosting, VPS hosting), which is running CentOS7.
Installed JDK1.8 and Tomcat 8.5, MySQL (MariaDB 10.2)
Downloaded XWiki 10.10 the latest stable, and installation is completed and I have modifed xwiki.cfg and xwiki.properties to make sure DB is connected and permanent directory is set.
But however I make an effort to set the ‘environment.permanentDirectory’, the permanent directory is set to work directory under tomcat, and I have no idea why.
I tried changing several locations, and I even tried to set xwiki.data.dir, but still works on work directory.
I’ve used this to check.
({{velocity}}
$services.component.getInstance(‘org.xwiki.environment.Environment’).getPermanentDirectory()
{{/velocity}})
It always give me this directory:
/opt/apache-tomcat-8.5.34/work/Catalina/localhost/xwiki
where /opt/apache-tomcat-8.5.34 is tomcat installed directory.
This is current permanent directory setting:
~# environment.permanentDirectory=/var/local/xwiki/ - not working
~# environment.permanentDirectory=/usr/xwiki/ - not working
environment.permanentDirectory=/opt/tomcat/webapps/xwiki/data
Where do I look after to set proper permanent directory?
Thanks,