Common issues when installing Magento 2

When installing Magento 2, here are some common issues that can occur and their fixes:
When you don’t see CSS in your browser, you have to check the following things:

Make sure the pub/ folder is writable

Run the command
 php bin/magento setup:static-content:deploy
 to generate the static content You forget to install the sample data.

You can install the sample data after the installation of Magento with thecommand 
php bin/magento sampledata:deploy
The installation is not responding anymore:

This could be caused by an Apache timeout. If this occurs, you can maybe try the command-line installation. This works as follows:

To run the Magento installer from the command line, we can use the command php
bin/magento setup:install. We have to add the following required parameters to the
command to configure the installation:

base-url: The base URL, for example http://magento2.local/
db-host: The database host or IP address
db-user: The database username
db-name: The database name
db-password: The database password
admin-firstname: The first name of the administrator user
admin-lastname: The last name of the admin user
admin-email: The e-mail address of the admin user
admin-user: The username (login name) of the admin user
admin-password: The password for the admin user language: The language of the shop currency: The currency code of the shop.
timezone: The time zone of the shop
use-rewrites: Whether to use the apache rewrites or not
use-sample-data: Install the sample data (optional)

Look at the following code for a working example of the install command:

php bin/magento setup:install --base-url=http://magento2.local/ --dbhost=localhost --db-user=magento2 --db-name=magento2 --dbpassword=yourpassword --admin-firstname=John --admin-lastname=Doe --adminemail=john.doe@example.com --admin-user=admin --language=en_US -- currency=USD --timezone=UTC --use-rewrites=1

Comments

Popular posts from this blog

Product export duplicate rows for product in Magento 2.1.2 or 2.1.x

Static Content Loading issue when Upgrade From Magento 2.1.0 to Magento 2.1.3