Give permissions to scripts
Run:
chmod -R +x bin/
mkdir web
Run:
bin/setup
Run:
bin/setup-magento-new
For other Magento version change MAGE_VERSION in bin/setup-magento-new
Run:
cd web && git clone myproject
Run:
bin/fix-permissions
bin/start
bin/stop
bin/restart
Set vm.max_map_count to at least 262144edit The vm.max_map_count kernel setting must be set to at least 262144 for production use.
How you set vm.max_map_count depends on your platform:
Linux
The vm.max_map_count setting should be set permanently in /etc/sysctl.conf:
grep vm.max_map_count /etc/sysctl.conf
vm.max_map_count=262144
To apply the setting on a live system, run:
sysctl -w vm.max_map_count=262144
Go to bin/create-admin-user
file and edit admin user data, save and run:
bin/create-admin-user
To run any bin/magento
command, just run:
bin/magento command
bin/cli command
bin/php
bin/composer command