template_c directory not created or not pointing to the right place.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfixadmin (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When installing postfixadmin from scratch you get an error:
ERROR: the templates_c directory doesn't exist or isn't writeable for the webserver
This is because there's a bug in smarty.inc.php:
// if it's not present or writeable, smarty should just not cache.
if (is_dir(
<...>
}
Where the location of templates_c is (a) hard-coded and (b) hard-coded to a questionable (and relative) location.
The manual fix for this is to create the directory and chown it to www-data:www-data.
Neglected to add:
Description: Ubuntu 20.04.3 LTS
Release: 20.04
apt-cache policy postfixadmin us.archive. ubuntu. com/ubuntu focal/universe amd64 Packages dpkg/status
postfixadmin:
Installed: 3.2.1-3
Candidate: 3.2.1-3
Version table:
*** 3.2.1-3 500
500 http://
100 /var/lib/