I use all the methods available on google but nothing worked. Same issue is showing again and again.
After running this command: php bin/magento info:adminuri. It does not show the admin url.
php bin/magento info:adminuri
2
Check for the admin URL in the app/etc/env.php. For example, it can be something like this (Is it frontName empty in your case?). Change the frontname to your preference, clean cache and try again.
return array ( 'backend' => array ( 'frontName' => 'admin_1onald', ),
Check the core_config_data table to find if admin url has been changed from the admin panel
select * from core_config_data where path like '%custom%';
check if there are any records for
- admin/url/use_custom - admin/url/custom - admin/url/use_custom_path - admin/url/custom_path
If any, adjust > cache clean > try again
Change the admin URL of your store. Run the following command in the root directory of your store:
php bin/magento setup:config:set --backend-frontname="newadmin"
In the above command, I have set the admin name newadmin so to access the admin panel add /newadmin with your store URL.
Click here to cancel reply.
2
Answers
Check for the admin URL in the app/etc/env.php. For example, it can be something like this (Is it frontName empty in your case?). Change the frontname to your preference, clean cache and try again.
Check the core_config_data table to find if admin url has been changed from the admin panel
select * from core_config_data where path like '%custom%';
check if there are any records for
- admin/url/use_custom
- admin/url/custom
- admin/url/use_custom_path
- admin/url/custom_path
If any, adjust > cache clean > try again
Change the admin URL of your store. Run the following command in the root directory of your store:
In the above command, I have set the admin name newadmin so to access the admin panel add /newadmin with your store URL.