Anyone using Magento 2 with EasyEngine?


#1

Hi,

Is there anyone running Magento 2 with EasyEngine?

If yes, can you please share your experience in terms fos speed and performance and also what special custom changes where needed in order to make Magento 2 to work with EasyEngine?

Thanks


#2

Hello mikeslv, yes I’m using Magento 2 with EasyEngine and redis for the session and full page caching, and yes the loading speed is really good.


#3

Hi @virtubox

The performance of your store seems great! Did you had to make changes on the nginx default configuration file in order to make EasyEngine to properly work with Magento 2?

If yes, do you mind sharing?

Thanks


#4

You have to use the most part of the nginx.conf.sample available in the magento archive, but to adapt it with easyengine because it doesn’t use the same variable. For example EE use “fastcgi_pass php7”. I’m writing an article about that and it will be available at anystack.xyz


#5

@virtubox

Looking forward to read your article about Easyengine + Magento 2. When it’s ready, please inform me.

Thanks


#6

@mikeslv the article is now available : https://anystack.xyz/setup-magento-2-easyengine-nginx-redis-cache/ Feel free to tell me if there are any errors in my post.


#7

I recommend a different stack for Magento; https://github.com/magenx/Magento-Automated-Server-Configuration-from-MagenX


#8

Thanks for the post! Will try in the next days.


#9

Thanks for the suggestion! Will also try and compare with @virtubox setup using EasyEngine.

Do you @tininho are already using the MagenX stack. If yes, is it really good? Are there any main bugs or problems?

Thanks


#10

Excellent article! - Finally make it work but the js / css and images are not working:

magento2/version1488527879/_requirejs/adminhtml/Magento/backend/en_US/requirejs-config.js – 404

Any ideas?


#11

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


#12

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


#13

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.


#14

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? =)


#15

Hello, can you show me your vhost configuration ?


#16

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.


#17

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


#18

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.


#19

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


#20

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

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