mirror of https://github.com/MISP/MISP
chg: [doc] Various updates for RHEL8/CentOS8/Debian10.1
parent
055d3abdb4
commit
004141f504
|
@ -198,7 +198,6 @@ sudo systemctl enable --now haveged.service
|
|||
# <snippet-begin 1_mispCoreInstall_RHEL.sh>
|
||||
installCoreRHEL () {
|
||||
# Download MISP using git in the $PATH_TO_MISP directory.
|
||||
PATH_TO_MISP="/var/www/MISP"
|
||||
sudo mkdir -p $(dirname $PATH_TO_MISP)
|
||||
sudo chown $WWW_USER:$WWW_USER $(dirname $PATH_TO_MISP)
|
||||
cd $(dirname $PATH_TO_MISP)
|
||||
|
@ -257,7 +256,6 @@ installCoreRHEL () {
|
|||
# lief needs manual compilation
|
||||
sudo yum install devtoolset-7 cmake3 cppcheck -y
|
||||
|
||||
# FIXME: This does not work!
|
||||
cd $PATH_TO_MISP/app/files/scripts/lief
|
||||
$SUDO_WWW mkdir build
|
||||
cd build
|
||||
|
|
|
@ -29,7 +29,9 @@ Make sure you are reading the parsed version of this Document. When in doubt [cl
|
|||
The core MISP team cannot verify if this guide is working or not. Please help us in keeping it up to date and accurate.
|
||||
Thus we also have difficulties in supporting RHEL issues but will do a best effort on a similar yet slightly different setup.
|
||||
|
||||
This document details the steps to install MISP on Red Hat Enterprise Linux 8.x (RHEL 8.x).
|
||||
!!! notice
|
||||
Maintenance for CentOS 8 will end on: May 31st, 2029 [Source[0]](https://wiki.centos.org/About/Product) [Source[1]](https://linuxlifecycle.com/)
|
||||
CentOS 8 [NetInstallURL](http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS)
|
||||
|
||||
This document details the steps to install MISP on Red Hat Enterprise Linux 8.x (RHEL 8.x) and CentOS 8.x.
|
||||
At time of this writing it was tested on versions 8.0 for RHEL.
|
||||
|
@ -104,12 +106,9 @@ sudo yum update -y
|
|||
|
||||
## 1.6/ **[RHEL]** Install the EPEL repo
|
||||
|
||||
!!! note
|
||||
There is no epel-releas-latest-8 yet, but the RHEL 7 seems to work for testing.
|
||||
|
||||
```bash
|
||||
# <snippet-begin 0_RHEL_EPEL.sh>
|
||||
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y
|
||||
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
|
||||
# <snippet-end 0_RHEL_EPEL.sh>
|
||||
```
|
||||
|
||||
|
@ -142,7 +141,7 @@ yumInstallCoreDeps () {
|
|||
sudo systemctl enable --now redis.service
|
||||
|
||||
PHP_INI=/etc/php.ini
|
||||
sudo yum install php php-fpm php-devel \
|
||||
sudo yum install php php-fpm php-devel php-pear \
|
||||
php-mysqlnd \
|
||||
php-mbstring \
|
||||
php-xml \
|
||||
|
@ -238,7 +237,7 @@ installCoreRHEL () {
|
|||
|
||||
# lief needs manual compilation
|
||||
sudo yum groupinstall "Development Tools" -y
|
||||
sudo yum install cmake3 cppcheck -y
|
||||
sudo yum install cmake3 -y
|
||||
|
||||
cd $PATH_TO_MISP/app/files/scripts/lief
|
||||
$SUDO_WWW mkdir build
|
||||
|
@ -252,14 +251,18 @@ installCoreRHEL () {
|
|||
..
|
||||
$SUDO_WWW make -j3 pyLIEF
|
||||
|
||||
# In case you get "internal compiler error: Killed (program cc1plus)"
|
||||
# You ran out of memory.
|
||||
# Create some swap
|
||||
# sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
|
||||
# sudo mkswap /var/swap.img
|
||||
# sudo swapon /var/swap.img
|
||||
# And compile again
|
||||
# $SUDO_WWW make -j3 pyLIEF
|
||||
if [ $? == 2 ]; then
|
||||
# In case you get "internal compiler error: Killed (program cc1plus)"
|
||||
# You ran out of memory.
|
||||
# Create some swap
|
||||
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=4000
|
||||
sudo mkswap /var/swap.img
|
||||
sudo swapon /var/swap.img
|
||||
# And compile again
|
||||
$SUDO_WWW make -j3 pyLIEF
|
||||
sudo swapoff /var/swap.img
|
||||
sudo rm /var/swap.img
|
||||
fi
|
||||
|
||||
# The following adds a PYTHONPATH to where the pyLIEF module has been compiled
|
||||
echo /var/www/MISP/app/files/scripts/lief/build/api/python |$SUDO_WWW tee /var/www/MISP/venv/lib/python3.6/site-packages/lief.pth
|
||||
|
@ -420,7 +423,7 @@ EOF
|
|||
sudo systemctl restart mariadb
|
||||
|
||||
mysql -u $DBUSER_ADMIN -p$DBPASSWORD_ADMIN -e "CREATE DATABASE $DBNAME;"
|
||||
mysql -u $DBUSER_ADMIN -p$DBPASSWORD_ADMIN -e "GRANT USAGE on *.* to $DBUSER@localhost IDENTIFIED by '$DBPASSWORD_MISP';"
|
||||
mysql -u $DBUSER_ADMIN -p$DBPASSWORD_ADMIN -e "GRANT USAGE on *.* to $DBUSER_MISP@localhost IDENTIFIED by '$DBPASSWORD_MISP';"
|
||||
mysql -u $DBUSER_ADMIN -p$DBPASSWORD_ADMIN -e "GRANT ALL PRIVILEGES on $DBNAME.* to '$DBUSER_MISP'@'localhost';"
|
||||
mysql -u $DBUSER_ADMIN -p$DBPASSWORD_ADMIN -e 'FLUSH PRIVILEGES;'
|
||||
|
||||
|
@ -676,6 +679,9 @@ sudo systemctl enable --now misp-workers.service
|
|||
```
|
||||
|
||||
## 9.07/ misp-modules (Broken on RHEL8)
|
||||
|
||||
Here are CentOS 8 packages of openjpeg2-devel: https://centos.pkgs.org/8/centos-powertools-x86_64/openjpeg2-devel-2.3.0-8.el8.x86_64.rpm.html
|
||||
|
||||
```bash
|
||||
# some misp-modules dependencies
|
||||
sudo yum install openjpeg2-devel -y
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# INSTALLATION INSTRUCTIONS
|
||||
## for Debian 10 "buster"
|
||||
## for Debian 10.1 "buster"
|
||||
|
||||
### 0/ MISP debian stable install - Status
|
||||
------------------------------------
|
||||
|
||||
!!! notice
|
||||
This is mostly the install [@SteveClement](https://twitter.com/SteveClement) uses for testing, qc and random development.
|
||||
Maintained and tested by @SteveClement on 20190707
|
||||
Maintained and tested by @SteveClement on 20191016
|
||||
|
||||
!!! warning
|
||||
PHP 7.3.4-2 is not working at the moment with the packaged composer.phar<br />
|
||||
|
|
Loading…
Reference in New Issue