Question

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

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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

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.