#Installing on VPS -> default blog cannot be found
4 messages · Page 1 of 1 (latest)
Where your files are located doesn't matter all that much, as long as your entire app isn't served to the public (otherwise people can access the .env file for example). In your webserver config you should configure your root/document root to point to the public folder of your Laravel app. See https://laravel.com/docs/10.x/deployment#nginx for an example nginx config
I'd like to put the apps in my user's home directory, like /home/[my user]/website.com
Thank you very much for the reply. The only thing in WHM/Cpanel referencing NGINX was enabled, however, I can't see how I'm able to edit the file as whm intereface does not provide one. There's only 5 options (clear cache, reset, rebuilt, user default, uninstall). It's currently enabled for the domain.
Laravel documentation (Server Requirements -> NGINX) states: "Please ensure, like the configuration below, your web server directs all requests to your application's public/index.php file. " and provides a sample showing ports, paths, etc. - however, I have no idea where to find this configuration file within my server.
The folder myserver.com/myproject/ reflects all of the main laravel files which can be publicly seen. See photo (this can't be good?). Clicking on the public_html directory leads me to an error UnexpectedValueException The stream or file "/home/googlescraping/public_html/bgwin2024/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
Perhaps I'll delete the existing installation and try again step by step after clearing the cache? Not really sure how to proceed. Reading more...