Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (36 loc) · 2.09 KB

INSTALL.md

File metadata and controls

56 lines (36 loc) · 2.09 KB

Table of Contents

  1. Requirements
  2. Installation
  3. Afterwards

Please report any errors you encounter at https://github.com/certat/intelmq-webinput-csv/issues

For upgrade instructions, see UPGRADING.md.

Requirements

  • An installed python3 Flask
  • An installed intelmq installation on the same machine.

Installation

Please note that the pip3 installation method does not (and cannot) create /opt/intelmq/etc/examples/webinput_csv.conf. As workaround you need to move the file from the site-packages directory to /opt/intelmq manually. The location of this directory varies, it could be /usr/lib/python3.4/site-packages, /usr/local/lib/python3.5/dist-packages/ or similar.

From PyPi

sudo -s

pip3 install intelmq-webinput-csv

From the repository

Clone the repository if not already done:

git clone https://github.com/certat/intelmq-webinput-csv.git

If you have a local repository and you have or will do local modification, consider using an editable installation (pip install -e .).

pip3 install .

Webserver configuration and permissions

Configure your server to use the intelmq_webinput_csv executable as WSGI script. A configuration snippet for Apache can be found in contrib/apache/002_intelmq_webinput_csv.conf. Adapt the WSGIScriptAlias URL and path to your needs. On Debian systems the required wsgi package is called libapache2-mod-wsgi-py3

The backend needs to write /var/lib/intelmq/webinput_csv.csv and /var/lib/intelmq/webinput_csv.temp to save it's state. Both files need to be writeable by the used process.

Note: IntelMQ Webinput CSV uses Flask-SocketIO for asynchrous functionality, for Flask-SocketIO deployement options see their wiki.

Afterwards

Now continue with the User Guide.