Skip to content

Commit

Permalink
Fix instructions for templates_c directory in UPGRADE.txt
Browse files Browse the repository at this point in the history
Also add instructions for SELinux, and fix the version number describing
since when templates_c is used.

Fixes: #119
  • Loading branch information
cboltz committed Jan 13, 2018
1 parent 3bd7ef2 commit 75bcf30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions DOCUMENTS/UPGRADE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------
Expand Down

0 comments on commit 75bcf30

Please sign in to comment.