By Luis Lopes
Good evening guys, I followed this tutorial however in the end It appears this:
root@xxxxx:~# sudo chmod -R 775 /var/www/laravel/app/storage
chmod: cannot access '/var/www/laravel/app/storage': No such file or directory
And when I insert the ip droplet in the browser shows a 500 Error.
Someone knows how to fix this?
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!
You probably missed these steps, try these first and then try again:
Install Composer and Laravel Now, we are finally ready to install Composer and Laravel. We will set up Composer first. We will then use this tool to handle the Laravel installation.
Move to a directory where you have write access (like your home directory) and then download and run the installer script from the Composer project:
cd ~
curl -sS https://getcomposer.org/installer | php
This will create a file called composer.phar in your home directory. This is a PHP archive, and it can be run from the command line.
We want to install it in a globally accessible location though. Also, we want to change the name to composer (without the file extension). We can do this in one step by typing:
sudo mv composer.phar /usr/local/bin/composer
Now that you have Composer installed, we can use it to install Laravel.
Remember, we want to install Laravel into the /var/www/laravel directory. To install the latest version of Laravel, you can type:
sudo composer create-project laravel/laravel /var/www/laravel
Now, the files are all installed within our /var/www/laravel directory, but they are entirely owned by our root account. The web user needs partial ownership and permissions in order to correctly serve the content.
We can give group ownership of our Laravel directory structure to the web group by typing:
sudo chown -R :www-data /var/www/laravel
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.