Last active
January 20, 2021 11:53
-
-
Save zicodhkbd/b6e78557f2a743bb504b25ca8b05a07f to your computer and use it in GitHub Desktop.
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
#If you need Mautic install contact with me: | |
#Telegram: @zicdhobd | |
#skype : zicodhkbd | |
#Gmail : zicodhkbd@gmail.com | |
#Live : zicodhkbd@hotmail.com | |
#twitter: zicodhkbd | |
#=========================================================================== | |
# | |
#!/bin/sh | |
sudo apt update -y | |
sudo apt-get upgrade -y | |
sudo apt install build-essential checkinstall | |
sudo apt install ubuntu-restricted-extras | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:nilarimogard/webupd8 | |
sudo apt update | |
sudo apt install launchpad-getkeys | |
sudo launchpad-getkeys | |
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt update | |
sudo apt install git | |
sudo git config --global user.name "YourName" | |
sudo git config --global user.email youremail@gmail.com | |
sudo apt-get install software-properties-common | |
sudo apt upgrade -y | |
sudo apt -f install | |
sudo apt autoremove | |
sudo apt -y autoclean | |
sudo apt -y clean | |
sudo apt update | |
sudo reboot | |
sudo apt update && sudo apt upgrade | |
sudo add-apt-repository ppa:ondrej/apache2 | |
sudo apt-get update | |
sudo apt-get install apache2 | |
apache2 -v | |
sudo service apache2 start | |
sudo systemctl enable apache2 | |
sudo service apache2 restart | |
# Visit: http://localhost/ | |
# Install Mysql | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
mysql --version | |
sudo service mysql start | |
sudo service mysql enable | |
sudo service mysql restart | |
# Create Mautic Database | |
sudo mysql -u root -p | |
>CREATE DATABASE mautic DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
>GRANT ALL ON mautic.* TO 'muser'@'localhost' IDENTIFIED BY 'M@Utic786'; | |
>use mautic; | |
>FLUSH PRIVILEGES; | |
>exit | |
sudo service mysql restart | |
# Install PHP 7.2 | |
sudo apt update | |
sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-gmp php7.2-curl php7.2-intl php7.2-mbstring php7.2-xmlrpc php7.2-mysql php7.2-bcmath php7.2-gd php7.2-xml php7.2-cli php7.2-zip | |
sudo nano /etc/php/7.2/apache2/php.ini | |
# Change | |
file_uploads = On | |
allow_url_fopen = On | |
short_open_tag = On | |
memory_limit = 1024M | |
upload_max_filesize = 1024M | |
max_execution_time = 3600 | |
date.timezone = UTC+6 | |
# For save & exit ctrl+s and ctrl+x | |
sudo systemctl restart apache2.service | |
# test PHP 7.2 settings | |
sudo nano /var/www/html/phpinfo.php | |
# add | |
<?php phpinfo( ); ?> | |
http://localhost/phpinfo.php | |
# For save & exit ctrl+s and ctrl+x | |
sudo systemctl restart apache2.service | |
# Visit: http://localhost/phpinfo.php | |
# Install PHPmyAdmin | |
sudo apt update | |
sudo apt install phpmyadmin php-mbstring php-gettext | |
sudo nano /etc/apache2/apache2.conf | |
# Then add the following line to the end of the apache2.conf file | |
Include /etc/phpmyadmin/apache.conf | |
# save ctrl+x then y and hit enter. Then restart apache: | |
sudo systemctl restart apache2.service | |
# visit: http://localhost/phpmyadmin/ | |
# Clone Mautic | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
cd /var/www/html | |
sudo git clone https://github.com/mautic/mautic.git | |
cd /mautic/ | |
sudo apt-get install php7.2-imap | |
sudo composer install | |
#Enable the Mautic | |
sudo a2ensite mautic.conf | |
sudo a2enmod rewrite | |
sudo systemctl restart apache2.service | |
# Enjoy http://localhost/mautic/ | |
# use Database Name:mautic user name: muser Password: M@Utic786 during installation | |
#Install #Mautic #Marketing #Automation |
Author
zicodhkbd
commented
Jan 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment