Comments on How to Install Magento 2 with Nginx and Letsencrypt on Ubuntu 18.04
Magento is a widely used Open Source e-commerce software and content management system for e-commerce websites based on the PHP Zend Framework. It uses MySQL or MariaDB as database backend. In this tutorial, I will show you how to install Magento 2 with Nginx, PHP 7.1 FPM, and MySQL as the database. I will use ubuntu 18.04 (Bionic Beaver) as server operating system.
13 Comment(s)
Comments
I ran into problem, I installed nginx, mysql as specified above but didn't install SSL, my config for nginx is as follows
"upstream fastcgi_backend {
server unix:/run/php/php7.1-fpm.sock;
}
server {
listen 80;
server_name www.mysite.com;
set $MAGE_ROOT /var/www/html/mysite;
include /var/www/html/mysite/nginx.conf.sample;
}"
And when i enter www.mysite.com in browser, its not resolved. Anything wrong?
Wow this guide is amazing, but how can I setup my site to work even with http because right now I appears only with https
But I got a problem after a simple bin/magento setup:upgrade, I get the error HTTP ERROR 500 can you please help me ?is it something about file permissions ?
use
chown -R www-data /var/www/magento2 solve the probleam
Ok, this worked verry well. I changed 2.2.4 to 2.2.5 now that it is out. Some of the instructions are missing "sudo" and caused hickups. adding them where the command failed seemed to resolve the issue. I was hoping to install with sample data but the sample-data archive does not seem to have the json files needed.
Thank you for this write-up. it is verry helpful.
Did I miss something about Let's Encrypt certificate renewal? I thought we needed to set a schedule to do this... thanks
There is nothing missing. Ubuntu renews Let's encrypt certs automatically, there is a system-wide cronjob in /etc/cron.d/.
Amazing guide thank you!
Just a detail : be sure to add index.php in default Nginx configuration file.
Great tutorial, just used this to install Magento 2.3.1, Worked perfect on Ubuntu 18.04 LXC :D :D
I followed the tutorial step by step and setup Magento w/o any issue. But admin panel gives error redirected you too many times.
How can I fix this?
Thanks,
Superb!! I was struggling to get this installed. Followed all your steps and boom!! It is working now.
Thanks
Hello,
A few months ago I followed all the steps of this tutorial to install Magento 2. Now, there are some updates to do.
How do we do it?
Because by using the commands indicated in the magento devdoc, the only thing we get are composer errors. Thank you in advance ! Regards,