Public bug reported:

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.
        $templates_c = dirname(__FILE__) . '/../templates_c';
        if (is_dir($templates_c) && is_writeable($templates_c)) {
  <...>
          die("ERROR: the templates_c directory doesn't exist or isn't 
writeable for the webserver");
        }

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.

** Affects: postfixadmin (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1942689

Title:
  template_c directory not created or not pointing to the right place.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfixadmin/+bug/1942689/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to