Installing Magento 2 on Ubuntu 16
Hey all,
I'm trying to install Magento 2 on Ubuntu with the website buttonn, but Nginx is giving me a few errors.
In Custom configuration I have:
#redirect site to HTTPS
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
set $MAGE_ROOT /srv/MySite/pub;
set $MAGE_MODE developer;
#include /srv/MySite/nginx.conf.ajenti;
include /srv/MySite/nginx.conf.sample;
fastcgi_read_timeout 3000
In Custom top level I have:
upstream fastcgi_backend {
server unix:/var/run/php/php7.0-fpm.sock;
}
THE PROBLEM: In the configuration checks - ajenti throws and error that says:
nginx: [emerg] "root" directive is duplicate in /srv/MySite/nginx.conf.sample:28
However, I have copied conf.sample and renamed it conf.ajenti removing the "root" directive but this get overridden...
Please help as I need to get this project started ASAP and I can't seem to figure this out. Thanks a lot in advance !!
Customer support service by UserEcho
Hi, Got same issue. Im try to install Magento 2 through Ajenti. It would be fine if there is someone who can post a guide how to do in Ajenti.