Created
June 1, 2016 10:23
-
-
Save anubhavsahoo/192d9ab5527cc5d57a68865b61a5c949 to your computer and use it in GitHub Desktop.
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
#installation | |
sudo apt-get update | |
sudo apt-get install -y apache2 libapache2-mod-php5 unzip mysql-server libapache2-mod-auth-mysql php5-mysql php5-intl mcrypt php5-mcrypt | |
sudo a2enmod php5 | |
sudo php5enmod mcrypt | |
sudo apt-get install php5-imap | |
sudo php5enmod imap | |
cd /tmp/ | |
wget https://s3.amazonaws.com/mautic/releases/latest.zip | |
cd ~ | |
mkdir mautic | |
cd mautic | |
unzip /tmp/latest.zip | |
cd ~ | |
sudo mv mautic /var/www/ | |
chmod -R 777 /var/www/mautic/app | |
#copy mautic.conf to /etc/httpd/sites-available/ | |
cd /etc/apache2/sites-enabled | |
sudo ln -s ../sites-available/mautic.conf mautic.conf | |
sudo service apache2 restart | |
sudo mkdir /var/log/cron | |
sudo touch /var/log/cron/mautic-lead-update | |
sudo touch /var/log/cron/mautic-campaign-update | |
sudo touch /var/log/cron/mautic-campaign-trigger | |
sudo chown -R ubuntu:ubuntu /var/log/cron | |
#cron | |
*/5 * * * * /usr/bin/php /var/www/mautic/app/console mautic:leadlists:update --env=prod >> /var/log/cron/mautic-lead-update 2>&1 | |
*/5 * * * * /usr/bin/php /var/www/mautic/app/console mautic:campaigns:update --env=prod >> /var/log/cron/mautic-campaign-update 2>&1 | |
*/5 * * * * /usr/bin/php /var/www/mautic/app/console mautic:campaigns:trigger --env=prod >> /var/log/cron/mautic-campaign-trigger 2>&1 | |
<VirtualHost *:80> | |
ServerName mautic.papertostone.com | |
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}/mautic-error.log | |
CustomLog ${APACHE_LOG_DIR}/mautic-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