Showing results for 
Search instead for 
Did you mean: 

magento 2.3.4 install error

magento 2.3.4 install error

when i install magento 2.3.4 at godaddy vps via cpanel, the process to 99%, an error message:" [http code=404] Error: An error occurred while executing the application API", i find a answer said "delete the index.php/install/start and run the url", but i find the index.php dir is empty, so what should i do? thank you!a1.png


Re: magento 2.3.4 install error

Hi @menalsoft 

For now you can use the below code for setup/index.php file.

 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
use Magento\Setup\Application;
use Magento\Setup\Model\ObjectManagerProvider;

if (PHP_SAPI == 'cli') {
    echo "You cannot run this from the command line." . PHP_EOL .
        "Run \"php bin/magento\" instead." . PHP_EOL;
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>

// For Setup Wizard we are using our customized error handler
$handler = new \Magento\Framework\App\ErrorHandler();
set_error_handler([$handler, 'handler']);

$configuration = require __DIR__ . '/config/application.config.php';
$bootstrap = new Application();
$application = $bootstrap->bootstrap($configuration);
    ->setObjectManager(\Magento\Framework\App\Bootstrap::create(BP, $_SERVER)->getObjectManager());

Or can download fresh copy from Magento site as well.

I hope it will help you!

Re: magento 2.3.4 install error

Try to download a new setup and create a fresh boot on USB using RUFUS.