I have installed a Laravel app locally using the Laravel Installer. Now I want to upload the app to my production server which is a managed virtual server, but it fulfills all the needed requirements.
I have uploaded the app and changed in the .env
file the APP_URL
and the DB_*
settings accordingly. When I login to my server via ssh, go inside the app folder and try to use tinker
php artisan tinker
I get the following error message:
The error message makes sense, because the wp10***
folder does not contain a .config
folder. However, I do not have permission to create folders at the same level as the www
folder. Is it possible to put the folder inside the Laracast project folder? In my example this would be /is/htdocs/wp_10**/www/laracast/p1/.config/psysh
. If so, how do I tell Laravel the new location?
If you can't give access to use the default directory,
You can change the directory path in .env
file:
XDG_CONFIG_HOME=/home/some/directory
Thanks to bernhardh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With