Categories

  • 631 Topics
    2k Posts
    G
    @Promenade1037 said in i-doit update from 35 to 36 fails with permissions issues: Answering my own question, I reviewed /var/log/messages and found the following entry: "SELinux is preventing /usr/sbin/php-fpm from write access on the directory /var/www/html." Once I disabled SELinux, the update was able to proceed as usual. That is the worst you can do to fix this problem: turn off security. And worse: disable it and not even set it to permissive mode instead. If the SeLinux labels are not correct anymore, fix the SeLinux labels. Do not disable SeLinux. The installer as well as the instructions for the manual installation set the directory to a writable selinux context. So the first question to ask would be why the labels in your installation don't fit anymore?
  • 4k Topics
    16k Posts
    LFischerL
    Hey @cherif das ist tatsächlich merkwürdig. Kannst du ggf. in deiner init.php eine Debug Ausgabe machen um zu prüfen ob diese durchlaufen wird BEVOR der Command seine Logik ausführt? Setzt dein Command den Login voraus (-u admin -p admin ...)? Die Prüfung if (isys_module_manager::instance()->is_active('tools')) { ... } in der init.php kann nur funktionieren, wenn du (auch über die CLI) eingeloggt bist. Zum debuggen kannst du die Funktion print_ar_file('xyz'); nutzen - diese schreibt dann im Hintergrund eine Datei ins i-doit Temp Verzeichnis: temp/debug_output.txt. Viele Grüße Leo