Cannot install using nginx

This article provides a fix for a failed Adobe Commerce installation, when using the nginx web server.


If you use the nginx web server and you attempt to install the Adobe Commerce software, the installation sometimes fails.


You can confirm the issue by the following error in the var/report directory:

NOTE: You cannot install Adobe Commerce using the Setup Wizard because the Adobe Commerce setup directory cannot be accessed.
You can install Adobe Commerce using either the command line or you must restore access to the following directory: /var/www/html/setup
If you are using the sample nginx configuration, please go to";i:1;s:641:"#0 /var/www/html/lib/internal/Magento/Framework/App/Http.php(213): Magento\Framework\App\Http->redirectToSetup(Object(Magento\Framework\App\Bootstrap), Object(Exception))


Install the Adobe Commerce software using the command line.