Magento 2.2.2 Web Setup Wizard not visible in backend
this is a known issue. since early 2.0 and still not fixed in 2.3.1
https://github.com/magento/magento2/projects/14#card-3854114
https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Backend/Model/Setup/MenuBuilder.php#L47
/**
* Removes 'Web Setup Wizard' from the menu if doc root is pub and no setup url variable is specified.
*
* @param Builder $subject
* @param Menu $menu
* @return Menu
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @since 100.1.0
*/
public function afterGetResult(Builder $subject, Menu $menu)
{
if ($this->docRootLocator->isPub()) {
$menu->remove('Magento_Backend::setup_wizard');
}
return $menu;
}
}
============================================================================== FIX:
you can:
- comment that function.
- create nginx rewrite logic.
- using manual redirect:
https://github.com/magento/magento2/issues/4159#issuecomment-244483087
dont forget that you must have 2 doc roots for your website and setup.
## Set Magento root folder
set $MAGE_ROOT /var/www/html;
## Set main public directory /pub
root $MAGE_ROOT/pub;
...
location ~ ^/(setup|update) {
root $MAGE_ROOT;