• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Activate FOG Plugins

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    438
    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.
    • W
      WT_101
      last edited by

      Hi

      How can i enable certain plugin by default. For example i want to enable access control plugin. Once i finish install, the plugin will be enabled without going to the setting module to do the installation?

      or

      Current FOG Version1.5.9 can we trigger API to enable a plugin? such as enabling accesscontrol plugin by triggering API

      Thank You
      WT

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @WT_101 Similar post some days ago: https://forums.fogproject.org/topic/16082/install-plugins-programatically

        I guess it’s possible via SQL update commands send via shell scripting or something like that. Give it a try and let us know here.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • W
          WT_101
          last edited by

          I create a “activatepulginrun.php” and place under “fogproject\packages\web\management”

          the file can be call by the url “http://fogip/fog/management/activatepulginrun.php?plugin=accesscontrol” with the plugin name passing in

          First the code need to include below 2 line
          require ‘…/commons/base.inc.php’;
          $FOGCore = $GLOBALS[‘FOGCore’];

          then i include both

          1. activate plugin code
            copy from “activate()” at “fogproject\packages\web\lib\pages\pluginmanagementpage.class.php”

          2. install plugin code
            copy from “installedPost()” at “fogproject\packages\web\lib\pages\pluginmanagementpage.class.php”

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

          237

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project