Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    API Addon Installieren - Error: package.json was not found.

    Scheduled Pinned Locked Moved Betrieb
    4 Posts 2 Posters 358 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      frafu
      last edited by

      Ich hab eine frische i-doit Installion. Ich möchte das API Addon Installieren.
      Wenn ich idoit-api-1.12.1.zip versuche zu installieren, bekomme ich den Fehler:
      "Error: packa.json was not found."
      Wenn ich das zip File entpacker, ist das sehr wohl drinnen.

      9d3a680c-cd31-4366-934d-22b13defa278-image.png

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        frafu @frafu
        last edited by

        Hab im php error log etwas gefunden:

        PHP Warning:  ZipArchive::extractTo(/var/www/idoit//package.json): failed to open stream: Permission denied in /var/www/idoit/updates/classes/isys_update_files.class.php on line 294
        

        Welche Einstellungen ist da falsch?

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          frafu @frafu
          last edited by

          Habe jetzt temporär ein
          chown www-data.www-data /var/www/idoti/ gemacht. Dann hats funktioniert. Aber eigentlich sollte der Upload in das upload Verzeichnis gehen, in welchem www-data schreib Rechte hat.

          MartinVM 1 Reply Last reply Reply Quote 0
          • MartinVM Offline
            MartinV @frafu
            last edited by

            Das ist eigentlich Teil der (manuellen) Installation, z.B. für Debian oder Ubuntu

            cd /var/www/html/i-doit/
            sudo chown www-data:www-data -R .
            sudo find . -type d -name \* -exec chmod 775 {} \;
            sudo find . -type f -exec chmod 664 {} \;
            sudo chmod 774 controller *.sh setup/*.sh
            

            Bei Dir natürlich /var/www/idoit statt /var/www/html/idoit

            1 Reply Last reply Reply Quote 0
            • First post
              Last post