Report this

What is the reason for this report?

getting a weird error when I try to build project on droplet

Posted on December 8, 2017

On my development environment I would usually run these commands to rebuild my project:

php artisan cache:clear
composer dump-autoload

but when I try running them on my droplet I get some weird errors:

PHP Fatal error:  Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /var/www/dev.drmanansala.com/bootstrap/app.php:14
Stack trace:
#0 /var/www/dev.drmanansala.com/artisan(18): require_once()
#1 {main}
  thrown in /var/www/dev.drmanansala.com/bootstrap/app.php on line 14
Cannot create cache directory /home/francis/.cache/composer/repo/https---packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/francis/.cache/composer/files/, or directory is not writable. Proceeding without cache
Generating autoload files

Anyone have any idea’s whats going on? Also, I can’t seem to get gulp to work on my ubuntu machine. Says gulp is not a command



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

ran a few commands:

sudo apt-get install php-xml
sudo apt-get install php-mbstring

was able to get my composer install to work. Laravel is finally running but it’s running into problems lol. I’m guessing it’s a problem with the directories now

Old Question, but ran into this problem. Fixed by doing this:

sudo apt-get install php7.0-gmp
sudo apt-get install php-curl

then restart the server.

Source: SO

Your environment isn’t configured correctly. You probably need to remove the contents of vendor/ from your version control and run composer install on your droplet.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.