diff --git a/setup.php b/setup.php index da1fb5dc..e48a4662 100644 --- a/setup.php +++ b/setup.php @@ -152,10 +152,17 @@ else if (!is_writeable($incpath.'/templates_c')) { - print "
  • Error: Smarty template compile directory templates_c is not writable.
    \n"; - print "Please make it writable.
    \n"; - print "If you are using SELinux or AppArmor, you might need to adjust their setup to allow write access.
    \n"; - $error =+ 1; + if(!is_dir($incpath . '/templates_c')) { + print "
  • Error: Smarty template compile directory templates_c not found.
    \n"; + echo "Please mkdir -p $incpath/templates_c and make it writeable by the web server\n"; + $error =+ 1; + } + else { + print "
  • Error: Smarty template compile directory templates_c is not writable.
    \n"; + print "Please make it writable.
    \n"; + print "If you are using SELinux or AppArmor, you might need to adjust their setup to allow write access.
    \n"; + $error =+ 1; + } } else { print "
  • Smarty template compile directory is writable - OK
    \n"; }