Ir al contenido
  • +31 653-919-302
Cafayate.Net
  • 0
  • 0
  • Inicia sesión
  • Nederlands English (US) Español (AR)
  • Contáctanos
  • Inicio
  • Blog
  • Empleos
  • Contáctanos
Cafayate.Net
  • 0
  • 0
    • Inicio
    • Blog
    • Empleos
    • Contáctanos
  • +31 653-919-302
  • Nederlands English (US) Español (AR)
  • Inicia sesión
  • Contáctanos

Install Mautic on an Ubuntu 14.04 VPS

  • Todos los blogs
  • Tech Blog
  • Install Mautic on an Ubuntu 14.04 VPS
  • 5 de marzo de 2021 por
    Administrator

    DEV MACHINE @ 10.0.3.9 admin/ubuntu

    install-mautic-on-an-ubuntu-14-04-vps

     

     

     

    In this tutorial, we will explain how to install Mautic on an Ubuntu 14.04 VPS with MariaDB, PHP-FPM and Nginx. Mautic is an open source marketing automation software built on top of the Symfony 2 components and open source libraries. This guide should work on other Linux VPS systems as well but was tested and written for an Ubuntu 14.04 VPS.

    Login to your VPS via SSH

    ssh user@vps

    Update the system and install necessary packages

    [user]$ sudo apt-get update && sudo apt-get -y upgrade
    [user]$ sudo apt-get install software-properties-common git curl vim

    Install MariaDB 10.0

    To install MariaDB, run the following commands:

    [user]$ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
    [user]$ sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/10.0/ubuntu trusty main'
    [user]$ sudo apt-get update
    [user]$ sudo apt-get install -y mariadb-server

    When the installation is complete, run the following command to secure your installation:

    [user]$ mysql_secure_installation

    Next, we need to create a database for our Mautic installation.

    [user]$ mysql -uroot -p
    MariaDB [(none)]> CREATE DATABASE mautic;
    MariaDB [(none)]> GRANT ALL PRIVILEGES ON mautic.* TO 'mauticuser'@'localhost' IDENTIFIED BY 'mauticuser_passwd';
    MariaDB [(none)]> FLUSH PRIVILEGES;
    MariaDB [(none)]> \q

    Install Nginx

    Ubuntu 14.04 comes with nginx version 1.4, to install the latest stable version of Nginx version 1.8, run:

    [user]$ sudo add-apt-repository -y ppa:nginx/stable
    [user]$ sudo apt-get update
    [user]$ sudo apt-get -y install nginx

    Install PHP and required PHP modules

    To install the latest stable version of PHP version 5.6 and all nessesary modules, run:

    [user]$ sudo add-apt-repository -y ppa:ondrej/php5-5.6
    [user]$ sudo apt-get update
    [user]$ sudo apt-get -y install php5-fpm php5-cli php5-json php5-curl php5-gd php5-mysqlnd php5-imap php5-mcrypt

    Install Composer

    Composer is a dependency manager for PHP with which you can install packages. Composer will pull in all the required libraries and dependencies you need for your project.

    [user]$ curl -sS https://getcomposer.org/installer | php
    [user]$ sudo mv composer.phar /usr/local/bin/composer

    Install Mautic

    Create a root directory for your Mautic installation script using the following command:

    [user]$ mkdir -p ~/myMautic.com/{public_html,logs}

    Clone the project repository from GitHub:

    [user]$ git clone https://github.com/mautic/mautic.git ~/myMautic.com/public_html

    Change to the directory and install composer packages:

    [user]$ cd ~/myMautic.com/public_html
    [user]$ composer install
    

    PHP-FPM configuration

    Create a new PHP-FPM pool for your user:

    [user]$ sudo vim /etc/php5/fpm/pool.d/your_user.conf
    [your_user]
    user = your_user  
    group = your_user  
    listen = /var/run/php5-fpm-your_user.sock  
    listen.owner = your_user
    listen.group = your_user  
    listen.mode = 0666  
    pm = ondemand  
    pm.max_children = 5  
    pm.process_idle_timeout = 10s;  
    pm.max_requests = 200  
    chdir = /

    Do not forget to change your_user with your username.

    Restart PHP-FPM:

    [user]$ sudo service php5-fpm restart

    Nginx configuration

    Create a new Nginx server block with the following content:

    [user]$ sudo nano /etc/nginx/sites-available/myMautic.com
    server {
        server_name myMautic.com;
        listen 80;
        root /home/your_user/myMautic.com/public_html;
    
        access_log /home/your_user/myMautic.com/logs/access.log;
        error_log /home/your_user/myMautic.com/logs/error.log;
    
        index index.php;
    
        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }
    
        sendfile off;
    
        location ~ \.php$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass unix:/var/run/php5-fpm-your_user.sock;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            fastcgi_intercept_errors off;
            fastcgi_buffer_size 16k;
            fastcgi_buffers 4 16k;
        }
    
        location ~ /\.ht {
            deny all;
        }    
    }

    Do not forget to change your_user with your username.

    Activate the server block by creating a symbolic link :

    [user]$ sudo ln -s /etc/nginx/sites-available/myMautic.com /etc/nginx/sites-enabled/myMautic.com

    Test the Nginx configuration and restart nginx:

    [user]$ sudo nginx -t
    [user]$ sudo service nginx restart

    Final steps

    Open http://myMautic.com in your favorite web browser and you should see the Mautic install screen. Provide the database information and create an admin user.

    That’s it. You have successfully installed Mautic on your Ubuntu 14.04 VPS. For more information about how to manage your Mautic installation, please refer to the official Mautic documentation.


     

     

     

    en Tech Blog
    How can I download and install Odoo 11?

    Diseñado para empresas

    Somos un equipo de personas apasionadas cuyo objetivo es mejorar la vida de todos a través de productos revolucionarios. Creamos grandes productos para resolver sus problemas empresariales. Nuestros productos están diseñados para pequeñas y medianas empresas dispuestas a optimizar su rendimiento.

    Contáctenos

    Plantexel
    Pedernera
    Salta Capital 
    Argenina

    • +31 653-919-302
    • [email protected]
    Síganos
    Copyright © Plantexel
    Nederlands | English (US) | Español (AR)