I have the following environment:
Ubuntu16.04 + Nginx + MariaDb + Php7. I downloaded Magento through composer:
composer create-project magento/community-edition magento2 -s dev --prefer-dist
Then I created a database on the MariaDB server.
Normally the next step would be to open the magento and pass user and password from the newly created database.
I type the URL cb100.com
and I'm redirected to cb100.com/setup/
.
The answer I have is a blank page. The tab favicon is from magento. That is, something is working.
When I see the NginX log this is what I have:
could not find named location "@handler", client: 127.0.0.1, server:
cb100.com, request: "POST /setup/index.php/session/prolong HTTP/1.1",
host: "cb100.com", referrer: "http://cb100.com/setup/"
I do not have any clues anymore
The only change I made was to allow project folders. I passed them all to the www-data
group. Group under which the NginX runs.
chown -R ila:www-data cb100.com;
Is there any missing configuration in NginX?
UPDATE
I am going to post the code of Magento mysite.com/index.php
and mysite.com/setup/index.php
cb100.com/index.php
try {
require __DIR__ . '/app/bootstrap.php';
} catch (\Exception $e) {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
Autoload error</h3>
</div>
<p>{$e->getMessage()}</p>
</div>
HTML;
exit(1);
}
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
cb100.com/setup/index.php
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
echo "here";
if (PHP_SAPI == 'cli') {
echo "You cannot run this from the command line." . PHP_EOL .
"Run \"php bin/magento\" instead." . PHP_EOL;
exit(1);
}
try {
require __DIR__ . '/../app/bootstrap.php';
} catch (\Exception $e) {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
<h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
Autoload error</h3>
</div>
<p>{$e->getMessage()}</p>
</div>
HTML;
exit(1);
}
// For Setup Wizard we are using our customized error handler
$handler = new \Magento\Framework\App\ErrorHandler();
set_error_handler([$handler, 'handler']);
\Zend\Mvc\Application::init(require __DIR__ . '/config/application.config.php')->run();