cancel
Showing results for 
Search instead for 
Did you mean: 

The page is not fully loaded when installing Magento

SOLVED

The page is not fully loaded when installing Magento

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: The page is not fully loaded when installing Magento

@kristijani3297 

You can follow the below steps or make sure whether you have followed or not:


  1. Copy the index.php and .htaccess files from the pub folder and paste into the root directory.
  2. 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'; 
    with 
    require __DIR__.'/app/bootstrap.php';
  3.  Insert the below four rows in the core_config_data table.

    web/secure/base_static_urlhttp://localhost/m242/pub/static/
    web/unsecure/base_static_urlhttp://localhost/m242/pub/static/
    web/secure/base_media_urlhttp://localhost/m242/pub/media/
    web/unsecure/base_media_urlhttp://localhost/m242/pub/media/
  4. At the end, please run the below command:
     php bin/magento cache:flush  
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

View solution in original post

1 REPLY 1

Re: The page is not fully loaded when installing Magento

@kristijani3297 

You can follow the below steps or make sure whether you have followed or not:


  1. Copy the index.php and .htaccess files from the pub folder and paste into the root directory.
  2. 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'; 
    with 
    require __DIR__.'/app/bootstrap.php';
  3.  Insert the below four rows in the core_config_data table.

    web/secure/base_static_urlhttp://localhost/m242/pub/static/
    web/unsecure/base_static_urlhttp://localhost/m242/pub/static/
    web/secure/base_media_urlhttp://localhost/m242/pub/media/
    web/unsecure/base_media_urlhttp://localhost/m242/pub/media/
  4. At the end, please run the below command:
     php bin/magento cache:flush  
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.