Created
October 29, 2016 03:09
-
-
Save jermdw/328f60842f86f31eefc976b2e5e02bad to your computer and use it in GitHub Desktop.
Vagrant - MISP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create an Admin User | |
sudo adduser admin | |
# Pull the latest updates | |
sudo apt update && sudo apt dist-upgrade -y | |
# install postfix, there will be some questions. | |
sudo apt install -y postfix | |
# Postfix Configuration: Satellite system | |
# change the relay server later with: | |
#sudo postconf -e 'relayhost = example.com' | |
#sudo postfix reload | |
# 1st round of dependencies... | |
sudo apt-get install curl gcc git gnupg-agent make python openssl redis-server sudo vim zip | |
# MariaDB of course.. | |
sudo apt-get install mariadb-client mariadb-server | |
# Secure the MariaDB installation (especially by setting a strong root password) | |
sudo mysql_secure_installation | |
# Install Apache2 | |
sudo apt install -y apache2 apache2-doc apache2-utils | |
# Enable modules, settings, and default of SSL in Apache | |
sudo a2dismod status \ | |
sudo a2enmod ssl \ | |
sudo a2enmod rewrite \ | |
sudo a2dissite 000-default \ | |
sudo a2ensite default-ssl \ | |
# Install PHP and dependencies | |
apt install -y libapache2-mod-php php php-cli php-crypt-gpg php-dev php-json php-mysql php-opcache php-readline php-redis | |
# Apply all changes | |
sudo systemctl restart apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment