<commit_before># Requirements

The following instructions assume:
* Debian or Ubuntu Operatin System
* [IntelMQ](https://github.com/certtools/intelmq) is already installed
* [IntelMQ](https://github.com/certtools/intelmq) and [IntelMQ Manager](https://github.com/certtools/intelmq-manager) will be installed on same machine


# Quick Installation

To quickly install a default IntelMQ + Manager with no password just run the following as root:
```
git clone https://<your-github-account>@github.com/certtools/intelmq-manager.git /tmp/intelmq-manager
/tmp/intelmq-manager/bin/INSTALL_INTELMQ.sh
/tmp/intelmq-manager/bin/INSTALL_MANAGER.sh
```

# Installation

### Install Dependencies

```
apt-get install git
apt-get install apache2 php5 libapache2-mod-php5
```

### Install

```
git clone https://<your-github-account>@github.com/certtools/intelmq-manager.git /tmp/intelmq-manager
cp -R /tmp/intelmq-manager/intelmq-manager/* /var/www/
chown -R www-data.www-data /var/www/
```

### Configure

Add the Apache user to the intelmq group.

```
usermod -a -G intelmq www-data
```

Give Apache user permissions to execute commands as intelmq user. Edit the /etc/sudoers file and add the following line:
```
www-data ALL=(intelmq) NOPASSWD: /usr/local/bin/intelmqctl
```

Edit '/var/www/php/config.php' and put the following as the $CONTROLLER value:
```
$CONTROLLER = "sudo -u intelmq /usr/local/bin/intelmqctl %s";
```

<commit_msg>Update INSTALL.md<commit_after># Requirements

The following instructions assume:
* Debian or Ubuntu Operatin System
* [IntelMQ](https://github.com/certtools/intelmq) is already installed
* [IntelMQ](https://github.com/certtools/intelmq) and [IntelMQ Manager](https://github.com/certtools/intelmq-manager) will be installed on same machine


# Quick Installation

To quickly install a default IntelMQ + Manager with no password just run the following as root:
```
git clone https://<your-github-account>@github.com/certtools/intelmq-manager.git /tmp/intelmq-manager
/tmp/intelmq-manager/bin/INSTALL_INTELMQ.sh
/tmp/intelmq-manager/bin/INSTALL_MANAGER.sh
```

# Installation

### Install Dependencies

```
apt-get install git
apt-get install apache2 php5 libapache2-mod-php5
```

### Install

```
git clone https://<your-github-account>@github.com/certtools/intelmq-manager.git /tmp/intelmq-manager
cp -R /tmp/intelmq-manager/intelmq-manager/* /var/www/
chown -R www-data.www-data /var/www/
```

### Configure

Add the Apache user to the intelmq group.

```
usermod -a -G intelmq www-data
```

Give Apache user permissions to execute commands as intelmq user. Edit the /etc/sudoers file and add the following line:
```
www-data ALL=(intelmq) NOPASSWD: /usr/local/bin/intelmqctl
```

Edit '/var/www/php/config.php' and put the following as the $CONTROLLER value:
```
$CONTROLLER = "sudo -u intelmq /usr/local/bin/intelmqctl %s";
```

Restart apache:
```
/etc/init.d/apache2 restart
```


{'fraction_non_alphanumeric': 0.13525575008582216, 'fraction_numerical': 0.003089598352214212, 'mean_word_length': 4.49811320754717, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 14, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '178674', 'n_tokens_mistral': 1044, 'n_tokens_neox': 953, 'n_words': 257}