Hello everyone,
I am encountering a recurring issue while running installation profile updates in Providence (Ubuntu 24.04, CA 2.0.x).
During the update process I repeatedly get the following warning:
PHP Warning: Base directory /var/www/ca/providence_new/app/tmp/purifier does not exist,
please create or change using %Cache.SerializerPath
I investigated the configuration and found in app/conf/app.conf:
purify_serializer_path = <ca_temp_dir>/purifier
What seems to happen is that during update-installation-profile, the app/tmp structure is temporarily recreated or cleaned, causing the purifier directory to disappear.
Interesting detail:
mkdir -p app/tmp/purifier
from another terminal while the update is running, the warnings immediately stop and the update completes successfully.
Permissions are correct (www-data:www-data, 775).
So my question is:
- is this expected behaviour?
- should purifier be automatically recreated by CA/HTMLPurifier?
- would it be preferable to move ca_temp_dir outside app/tmp in production environments?
Thank you very much for any clarification.