Mautic Installation in Ubuntu 16.04 with LEMP and Postfix

Опубликовано: 03 Октябрь 2024
на канале: Techies365
1,780
11

Sorry for environment sound during video record. This video made on sudden request.

wget https://www.mautic.org/download/latest
unzip latest -d mautic
sudo mv mautic/ /var/www/
sudo chown -R www-data:www-data /var/www/mautic/

mysql -u root -p

CREATE DATABASE mautic DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

GRANT ALL ON mautic.* TO 'mauticuser'@'localhost' IDENTIFIED BY 'password';

FLUSH PRIVILEGES;
EXIT

sudo nano /etc/nginx/conf.d/mautic.conf
server {
listen 80;
listen [::]:80;
server_name mautic.your-domain.com;

root /var/www/mautic;

index index.php index.html index.htm index.nginx-debian.html;

location / {
try to serve file directly, fallback to app.php
try_files $uri /index.php$is_args$args;
}

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

location ~* ^/index.php {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini

fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

fastcgi_buffer_size 128k;
fastcgi_buffers 256 16k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}

sudo systemctl reload nginx

DNS: A - mautic.yourdomain.name - Server IP Address

Thumbainal Image Credit - https://hostpresto.com/