Amrinder Singh
Amrinder Singh

Reputation: 5522

autoload.php missing from vendor folder with Cakephp 3.0

I have installed fresh package of Cakephp 3.0, I have followed this tutorial, a fresh package has been installed on my system, but when I try to run the server then I get this error:

PHP Warning: require(/var/www/html/bookmarker/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bookmarker/bin/cake.php on line 31

And these are the commands I have used:

curl -s https://getcomposer.org/installer | php
php composer.phar create-project --prefer-dist cakephp/app bookmarker
cd bookmarker/
bin/cake server

When I tried the last command I got that error.

Upvotes: 2

Views: 6491

Answers (1)

Rendy Eko Prastiyo
Rendy Eko Prastiyo

Reputation: 1098

You can recreate your project autoload by this method:

  1. Open your terminal,
  2. cd /var/www/html/bookmarker,
  3. composer dumpautoload

Give it a try.

Upvotes: 6

Related Questions