Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is missed file vendor/autoload.php error #11

Open
shaopengwu opened this issue May 4, 2022 · 2 comments
Open

There is missed file vendor/autoload.php error #11

shaopengwu opened this issue May 4, 2022 · 2 comments

Comments

@shaopengwu
Copy link

After following the instructions to build Docker image by docker-compose,
When access url: http://localhost:8000/

Errors appear as:

Warning: require(/var/www/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/public/index.php on line 24

Fatal error: require(): Failed opening required '/var/www/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/public/index.php on line 24

@TomFern
Copy link
Owner

TomFern commented May 6, 2022

Hi @shaopengwu I just refreshed the demo code. I think that fixed the problem. Could you try again? Thank you

@shaopengwu
Copy link
Author

Hi @TomFern,

Thanks for the reply.

I realised I started from Docker directly. So that I did not install composer (nor installation PHP in order to keep everything inside of Docker) on my host machine.

So that, the 'vendor' folder is not found.

I will try to see if I can modify Dockerfile to install composer and installation in docker directly.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants