Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stef's avatar
Level 1

PHP Fatal error: require(): Failed opening required

Hello, i tried to install Laravel 5.6, but i get this error message:

[Sun Mar 10 11:59:48.532507 2019] [php7:error] [pid 12841] [client 178.202.30.126:56208] PHP Fatal error: require(): Failed opening required '/var/customers/webs/worksuite/support/public/bootstrap/autoload.php' (include_path='.:/usr/share/php') in /var/customers/webs/worksuite/support/public/index.php on line 22

In php.ini include_path='.:/usr/share/php' is activated

Apache 2.4 Debian 9 PHP 7.2

I also tried composer install/update --no-scripts, artisan clear cache etc.... Nothing is working for me!

Thx for help

0 likes
7 replies
Tray2's avatar

Sounds to me like you have a permission issue. Check who the owner is of the files and chownthem properly and also don't forget to chmodthe storage directory.

Snapey's avatar

have you been changing index.php to try and get it to work without correctly setting document root?

I don't understand why it is looking in public for the bootstrap folder.

How are you installing? You are using Composer, yes?

stef's avatar
Level 1

Yes i am using composer. When i use phpinfo(), the index is working, but when i use require or require_once, i get an 500 error.

Could pear be the problem?

stef's avatar
Level 1

Ok, i think it was a pear problem, now the public/index.php is working! But i get a:

The requested URL /login was not found on this server.

stef's avatar
Level 1

I don really know, but i included the path and it is working now. I don't ask for that :-)

I included it in my php.ini, maybe it was just fortune, but it is working. Also, i removed the php.ini (only with an _php.ini) and re-include it, restart apache and now it is working.

Please or to participate in this conversation.