By drcmanansala
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.