Anyone using Magento 2 with EasyEngine?

Not sure about to mod in the DB but solve this solve my issue:

1 Like

I will try this solution and add it to my article if that solve properly the issue with the styles

I have updated my article and added the solution from mageaddon.com to fix the issue with static content. The tutorial should be easier to follow with only a single configuration file to upload.

hey @virtubox, thanks for the article! Going over it I just got the error below on nginx -t config.

nginx: [emerg] "root" directive is duplicate in /var/www/mydomain.com/conf/nginx/magento.conf:22
nginx: configuration file /etc/nginx/nginx.conf test failed 

I went to check and “it is” duplicate. There’s one directive at the root of the file and others inside the setup and update location blocks, so I guess it isn’t really duplicate.

I tried just to ignore it but the setup doesn’t load so I guess I can’t just go around ignoring failed nginx configuration files, right? =)

Hello, can you show me your vhost configuration ?

Here you go @virtubox : https://gist.github.com/abrcoelho/fe8dcf8bb8a0c485e5ad04548ff9b485

The first file is at /etc/nginx/sites-available/mydomain.com and the second at /var/www/mydomain.com/conf/nginx.

You have a doublon : remove root /var/www/mydomain.com/htdocs; in sites-available

I commented that line and now I got a nginx: [emerg] unknown "mage_mode" variable. That supposedly is being passed on the /var/www/mydomain.com/conf/nginx/magento.conf file as a fastcgi param.

Ah yes, just add set $MAGE_MODE production; before the fastcgi_param MAGE_MODE $MAGE_MODE;

Last step: https://github.com/magento/magento2/issues/5908#issuecomment-275405288

Thanks a lot @virtubox! Now moving on to Magento setup, payment gateways, etc!

1 Like

Hello @virtubox and other friends!

I followed this post and

I didn’t install redis or opacache by the way.

When I type nginx -t, I got the following result.

nginx: [emerg] duplicate location “/” in /var/www/testdomain.com/conf/nginx/nginx.conf:79

Any solution?

Sincerely,

Honggi An

Hello, make sure your domain configuration in /etc/nginx/sites-availables/yoursite.tld looks like :

server {

    server_name yourdomain.com www.yourdomain.com;
    set $MAGE_ROOT /var/www/yourdomain.com/htdocs;

    access_log /var/log/nginx/yourdomain.com.access.log rt_cache;
    error_log /var/log/nginx/yourdomain.com.error.log;

    include /var/www/yourdomain.com/conf/nginx/*.conf;
}

Dear @virtubox

Thank you very much for your so quick reply, I pass the test nginx -t, but I got the blank installation page, no error log, any idea? When I search the google, I found some post, but I couldn’t find the proper solution yet.

Sincerely,

Honggi An

I solved it, it was a permission error!. Thank you very much!

I installed everything with no problem, when I wanted to start adding products there is no store view for me to change and I cant add product configuration because there is no save button, the web setup wizard also does not display.

Everything else in the store displays and works perfectly.

I have attached images. I would really appreciate your help.

Hello @Henry_Martins, try to purge the cache, and to re-compile magento with the CLI :

bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:clean

Hi, thanks for the reply. I have tried that many times, doing it inside magento and in the command line. It does not change anything.

Are you in production or developer mode ?

I’m in Developer mode

Guys, magento work in a vps 1/1? Or need more cpu and memory?