A step by step guide for Magento 2 setup on hosting or ubuntu.
sudo tail -100 /var/log/apache2/error.log
sudo nano 000-default.conf
sudo chmod -R 777 var/ pub/ generated/
sudo systemctl reload apache2
cd ../etc/apache2/sites-enabled
sudo apachectl restart
php bin/magento config:set web/secure/use_in_adminhtml 1
telnet reliancesolution.co.uk 80
Show Configuration
php bin/magento confi:show;
Then changed Store Url
Create a new user
php bin/magento admin:user:create –admin-user=â€admin†–admin-password=â€strong123q†–admin-email=â€email@example.com†–admin-firstname=â€Admin†–admin-lastname=â€Adminâ€
php bin/magento admin:user:create --admin-user="USER_USERNAME" --admin-password="USER_PASSWORD" --admin-email="USER_EMAIL" --admin-firstname="