1

[Mon Jul 20 09:54:57.082115 2020] [proxy_fcgi:error] [pid 9434:tid 140041913337600] [client 95.70.132.39:43011] AH01071: Got error 'PHP message: PHP Warning: require(/var/www/vhosts/mydomain/httpdocs/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/vhosts/mydomain/httpdocs/index.php on line 24PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/mydomain/httpdocs/vendor/autoload.php' (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/mydomain/httpdocs/index.php on line 24'

I got this error when i changed my hosting company.

I tried composer install and composer update.

    <?php

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <[email protected]>
 */

define('LARAVEL_START', microtime(true));
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();
$kernel->terminate($request, $response);

Also this is my index.php file.

3
  • 1
    If it was working find previously, it might help to delete the vendor directory and run composer install. Commented Jul 20, 2020 at 7:19
  • It did not work Commented Jul 20, 2020 at 8:17
  • Double check the file permissions, and if that's not it, then maybe something on the host is misconfigured. Commented Jul 20, 2020 at 18:39

1 Answer 1

1

Try composer command with --no-scripts
composer update --no-scripts

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.