magento setup:install --base-url=http://127.0.0.1/magento2/ --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=Admin --admin-lastname=User --admin-email=info@ydconsultancy.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=Europe/Amsterdam --cleanup-database --sales-order-increment-prefix="ORD$" --session-save=db --use-rewrites=1

change folder permission

cd <your Magento install dir> 
 
 
find . -type f -exec chmod 644 {} \;                        
find . -type d -exec chmod 755 {} \;                        
find ./var -type d -exec chmod 777 {} \;                    
find ./pub/media -type d -exec chmod 777 {} \;
find ./pub/static -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml
 
 
 
chown -R :<web server group> .
chmod u+x bin/magento