From 75bcf3091b37b8ce3b60d276db56c8c903d2a73d Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 13 Jan 2018 18:18:10 +0100 Subject: [PATCH] Fix instructions for templates_c directory in UPGRADE.txt Also add instructions for SELinux, and fix the version number describing since when templates_c is used. Fixes: https://github.com/postfixadmin/postfixadmin/issues/119 --- DOCUMENTS/UPGRADE.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DOCUMENTS/UPGRADE.txt b/DOCUMENTS/UPGRADE.txt index 64df9216..4167328a 100644 --- a/DOCUMENTS/UPGRADE.txt +++ b/DOCUMENTS/UPGRADE.txt @@ -58,14 +58,19 @@ to have change the permissions for Postfix Admin. (the last command assumes your Apache is running with group "www-data") -Since version 2.4 we use smarty templates. That means the templates_c directory +Since version 3.0 we use smarty templates. That means the templates_c directory needs to be writeable for your webserver. $ cd /usr/local/www/postfixadmin - $ mkdir templates_c && chmod 640 templates && chown -R www-data templates_c + $ mkdir templates_c && chmod 750 templates_c && chown -R www-data templates_c (if your Apache runs as user "www-data") +If you have SELinux enabled, also run (adust the path to match your setup) + + $ sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/utils/pfadmin/public/templates_c(/.*)?" + $ sudo restorecon -Rv /var/www/utils/pfadmin/ + 4. Configure ------------