warpig's avatar
Level 12

Can't open fresh project on localhost

Recently started a new Laravel project with Docker and what is this? https://flareapp.io/share/353jvk67#F12

0 likes
5 replies
Snapey's avatar

The user that your web server uses cannot write to the log file.

Snapey's avatar

look st the folder with the log file. Who owns it?

What user does your web server run as ? (often www-data)

delete the log file and see if your web server creates a new one

warpig's avatar
Level 12

man, this is my first time using docker how am i supposed to know where the log file is? an even better idea would be to look at it from windows explorer but this shit doesn't come as easy for me, this is not to say i'll be researching upon your answer, if you think you can explain that better go ahead, while i do my thing. and nice seeing you Snapey, you hall of famer. Wow. awesome. i remember you, bye.

warpig's avatar
Level 12

Do i need to add this, APP_LOG=single on the env because I can only see ".gitignore" on storage/logs folder, you mentioned www-data and to get to my project folder you'd need access to Network then Ubuntu and then project name, so far i haven't seen any www folder.

I created the project from the Ubuntu terminal, that's all that happened prior to this message basically. took me a while to realize i don't need ot use gitbash

Found this answer

You don't have the proper right for the given folder, from default, logs folder should have www-data writable rights, you can check that by ssh to machine and the do ls -l on files in /var/www/html/[your laravel app], if not, add the proper rights by: chown -R www-data:www-data *

Result:

chown: missing operand after ‘www-data:www-data’

Please or to participate in this conversation.