Last active
March 4, 2016 06:26
-
-
Save shobhitsinghal624/b4fcb35a599299005479 to your computer and use it in GitHub Desktop.
Mautic Installation Scripts - New Ubuntu EC2 Instance
This file contains hidden or 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
#! /usr/bin/env bash | |
cd ~ | |
# Install LAMP | |
sudo apt-get install --assume-yes apache2 mysql-server php5 php5-mysql | |
# Install other needed stuff | |
sudo apt-get install --assume-yes unzip | |
# Install these php5 modules | |
## php-intl : to have the internationalization functions | |
## php5-mcrypt | |
sudo apt-get install --assume-yes php5-intl mcrypt php5-mcrypt | |
sudo php5enmod mcrypt | |
sudo service apache2 restart | |
# Download the latest mautic setup | |
cd /var/www | |
sudo wget --level=0 https://www.mautic.org/download/latest | |
sudo unzip latest -d mautic | |
sudo rm latest | |
sudo chown -R www-data:www-data /var/www/mautic |
This file contains hidden or 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
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
#ServerName mautic.domain.tld | |
DocumentRoot /var/www/mautic | |
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
# error, crit, alert, emerg. | |
# It is also possible to configure the loglevel for particular | |
# modules, e.g. | |
#LogLevel info ssl:warn | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> | |
<Directory /var/www/mautic> | |
Options FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
</Directory> | |
php_value date.timezone "Asia/Kolkata" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment