Share one directory for Twig cache, SHP import and file uploads.
The code now also validates the cache directory and creates it on the
fly, so it properly detects if the directory can not be used.
Also the documentation has been improved to document securing this
directory.
Fixes#13225Fixes#13226
Signed-off-by: Michal Čihař <michal@cihar.com>
It is really not necessary as MySQL decides connection type rather based
on hostname than on anything else.
Signed-off-by: Michal Čihař <michal@cihar.com>
This removes risk of third party manipulating with the configuration as
there was race condition between editing and using the file.
Downloading the file should not be big hassle and this really makes the
whole setup a bit simpler.
Signed-off-by: Michal Čihař <michal@cihar.com>
In setup, try to follow what the docs say.
'Password login is still tried first, but as fallback, no password method is tried.'
Fix#12472
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Do it just once and very early, so that all scripts can rely on it being
available.
Fixes autoloading of phpseclib.
Fixes#11914
Signed-off-by: Michal Čihař <michal@cihar.com>