- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey,
I'm facing with problem while running the following command:
bin/magento setup:install \
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=database_test \
--db-user=root \
--db-password=root \
--admin-firstname=admin \
--admin-lastname=admin \
--admin-email=admin@admin.com \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1 \
--search-engine=elasticsearch7 \
--elasticsearch-host=es-host.example.com \
--elasticsearch-port=9200 \
Everything is building fine but when I go to the localhost the page is not stylized.
I'm newbie in this framework so I don't know what can be the problem.
Here is the screenshot of the localhost page:
https://imgur.com/yQKDqpZ
I hope you can help me.
I want to mention that the nginx root is set up in /
Thanks.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can follow the below steps or make sure whether you have followed or not:
- Copy the index.php and .htaccess files from the pub folder and paste into the root directory.
- Both files are in the pub folder when we download the setup for security purposes, but we’ve to follow this step while installing in the local. 3. Replace the below line in the index.php file that we’d paste in the root directory.
require __DIR__.'/../app/bootstrap.php';
withrequire __DIR__.'/app/bootstrap.php';
- Insert the below four rows in the core_config_data table.
web/secure/base_static_url http://localhost/m242/pub/static/ web/unsecure/base_static_url http://localhost/m242/pub/static/ web/secure/base_media_url http://localhost/m242/pub/media/ web/unsecure/base_media_url http://localhost/m242/pub/media/ - At the end, please run the below command:
php bin/magento cache:flush
200+ Magento 2 Extensions for Enhanced Shopping Experience.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can follow the below steps or make sure whether you have followed or not:
- Copy the index.php and .htaccess files from the pub folder and paste into the root directory.
- Both files are in the pub folder when we download the setup for security purposes, but we’ve to follow this step while installing in the local. 3. Replace the below line in the index.php file that we’d paste in the root directory.
require __DIR__.'/../app/bootstrap.php';
withrequire __DIR__.'/app/bootstrap.php';
- Insert the below four rows in the core_config_data table.
web/secure/base_static_url http://localhost/m242/pub/static/ web/unsecure/base_static_url http://localhost/m242/pub/static/ web/secure/base_media_url http://localhost/m242/pub/media/ web/unsecure/base_media_url http://localhost/m242/pub/media/ - At the end, please run the below command:
php bin/magento cache:flush
200+ Magento 2 Extensions for Enhanced Shopping Experience.