Install Magento 2.3 on Ubuntu 16.04 and Nginx

  1. Download the magento 2.3 with sample data from this link: https://magento.com/tech-resources/download
    I download the file Magento-CE-2.3.0_sample_data-2018-11-27-10-26-20.tar.bz2
  2. Extract the zip or tar.bz2 file to the web root. I extract the file into mce230 directory
  3. Check the php version (CLI and PHP-FPM). Make sure php version is 7.2

    change it to php 7.2

    check again

    Also check the php-fpm version: http://localhost:8080/phpinfo.php
    If not php 7.2, change it like this:

    Modify to enable php7.2-fpm

    Then save and restart nginx server.
    check again the php-fpm version: http://localhost:8080/phpinfo.php
    Now it’s PHP Version 7.2.14-1+ubuntu16.04.1+deb.sury.org+1
    NOTE: I foundSOME EXTENSIONS ARE MISSING. SO INSTALL THEM

     
  4. Create the config file

    Here is the content:

     
  5. Enable file config

     
  6. Register the host on my system

    Like this:

     
  7. CHECK THE NGINX SETTING AND RESTART IT:

     
  8. Set file permission and owner:

    Then

     
  9. Run the first installation: http://mce230.test
    It’d be redirected to http://mce230.test/setup/#/landing-install
    NOTE: Don’t forget to create a new database ‘mce230’ with utf8-general-ci via phpmyadmin (http://phpmyadmin.test:8080)
    OK. So here is My Store Address : http://mce230.test/
    and Magento Admin Address: http://mce230.test/admin_cereoy
    SORRY, ONLY ADMIN CAN SHOW THIS!

NOTE: Don’t forget to compile after finishing the installation. If not, you’d get the ugly page.

 

DONE

BUGS:
Sometimes the product images can’t be displayed! I tried to recompile with all the above commands but no avail
Solution: I need to resize the product images

I think no need to wait until 100% to resize the images! because it’d take a long time. just refresh the page if you think if the process is already pretty long

TO DISABLE THE CODE PROFILER ON THE M2 PAGE, MODIFY THE NGINX FILE (sudo gedit /etc/nginx/sites-available/mce230.test) THEN SET:

THEN RESTART NGINX SERVER: sudo service nginx reload

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *