Magento 2 server configuration -PHP7, Nginx, Postfix
This script installs the Magento and its server environment. It installs Nginx, PHP7, MySQL, Postfix, Composer, Magento 2, Magento sample data and all required packages and dependencies. It also set the Linux swapping and Vhost configuration.
This script makes ready Magento 2 to work for development and sets a single one store for one website.
This Magento environment fine for module and template development and Magento core contribution development
Pre-requirements: Ubuntu 18.04 with Internet connection.
To install Magento, first fill out the install.ini file then run the command "sudo bash install.sh"
sudo apt-get update
sudo apt-get install git
git clone https://github.com/DavidBelicza/magento2-server-configuration.git
nano install.ini
or gedit install.ini
sudo bash install.sh
The installation process created the Magento Linux User automatically, so you can login as Magento and use Magento's commands:
cd /var/www/html/mywebshop.com/webroot
su magento
php bin/magento
If you have any permission issues use the following commands:
cd /var/www/html/mywebshop.com/webroot
chown -R :www-data .
find . -type d -exec chmod 770 {} \;
find . -type f -exec chmod 660 {} \;
chmod u+x bin/magento
Article about Magento 2 and Server installation in Hungarian: Magento Propaganda