The Edgesense Drupal module requires other components to be installed on the server to function. The module itself checks for all the prerequisites and notifies you if anything is missing, but it is better to simply install them before configuring the module.
- Install the data processing library
- Enable the private files
- Install the required drupal modules
- Install the module
If you have an old stand-alone installation of edgesense working with your site, you'll need to do some cleanup beforehand. See old edgesense installation cleanup for details.
First you need to install the python library, the instructions are simple, on the computer where the drupal application is running (that is your site web server), you will need to:
- connect to the machine with
ssh
or other method - execute
sudo pip install edgesense
on the console - make sure the
edgesense_drupal
is available to the user running the drupal application (the directory whereedgesense_drupal
has been installed by thepip install
command should be in the default PATH)
If you are not able to do it on your own you need to ask for help to your server administrator. This may happen for instance if you don't have enough permissions to install new software on that server.
The private files directory is required to be setup in drupal since that is the place on the server where the module stores the configuration for the script that runs (the module requires it to be in the private files directory to make sure it's not accessible from the browser.)
To enable the private files directory you will need to:
- go in the drupal administration page,
- open the Configuration > File system panel
- add a directory in the Private file system field
- save the configuration
The configured directory should:
- exist on the server filesystem
- be writable by the user running the drupal application
These modules are required and need to be installed:
- Chaos Tool Suite (CTools):
- download the module from https://www.drupal.org/project/ctools,
- uncompress it in
<drupal root>/sites/all/modules/contrib/ctools
- Views:
- download the module from https://www.drupal.org/project/views,
- uncompress it in
<drupal root>/sites/all/modules/contrib/views
- Views Datasource:
- download the module from https://www.drupal.org/project/views_datasource,
- uncompress it in
<drupal root>/sites/all/modules/contrib/views_datasource
From the admin interface in Drupal, enable the following modules (at least):
- Chaos tools,
- Views,
- Views JSON
And save the configuration.
- Download the module: edgesense_latest.tgz
- Unpack the module in
<drupal root>/sites/all/modules/contrib/edgesense
- From the admin interface in Drupal, enable the Edgesense module
During the install phase the module runs the script a first time, this can take some time but at the end of the install process you'll be greeted with a message that invites you to open the dashboard.
The default install uses the Drupal's cron to run the processing scripts once per day. If you have a big community and the Drupal's cron system times out while processing, you'll have to disable the automatic daily run from the Edgesense admin pages and you will have to schedule the runs with a different method (e.g. using the server system's cron scheduler)
You can customize your Edgesense install in various ways:
- If you need to change the parameters by which the script processes the data, you can do so using the Edgesense configuration panel accessible from the Drupal admin interface: .
- If you need any special behaviour when selecting the data from the site you can customize the
edgesense_*
views, for instance if you want to filter somehow the data. If you have customized your views then updating the module in the future will not rebuild the views, but it'll keep your customizations. - If you have a big community and the Drupal's cron system times out while processing, you'll have to disable the automatic daily run from the Edgesense admin pages and you will have to schedule the runs with a different method (e.g. using the server system's cron scheduler).
You will need to do some cleanup prior to the install if you had configured your drupal site for a standalone version of Edgesense. This is because the new module will create the views for you and it will not overwrite a view if it find one with the same name. If the old views were not configured correctly for the new module then the export of the data might fail when running the data processing step. Therefore it is advisable to remove o at least rename the views.
You may receive some error message when installing the module if some of the prerequisites are not met. In this case you will need to:
- disable the Edgesense module (if it was enabled)
- uninstall the Edgesense module (from the Drupal modules admin page)
- fix the error (e.g. install the missing library)
- enable again the Edgesense module