bestmomo / laravel5-5-example

Laravel 5.5 example for tutorial
217 stars 122 forks source link

[Solved] A blank page after confirm on live server #17

Closed jihuichoi closed 6 years ago

jihuichoi commented 6 years ago

I fresh installed this project on xampp and deployed it to my live server using git (ubuntu 16.04, nginx, mariadb 10.0, aws) I had an issue against seeding, but solved.

Everything works fine, but some functions don't seem work properly.

For example, after registered, a blank page shows and nothing happens. posting also makes the same problem. However registration, posting works well.

And it's the same blank page after confirmed to save settings on admin page, but in this case, saving settings doesn't work at all.

image

I guess I missed something about server configurations. 'cause everything is great on my localhost on xampp.

can you tell me what are possible I missed or messed?

jihuichoi commented 6 years ago

It's strange. this morning, I did like below.

on live server (ubuntu 16.04, aws) $ php artisan serve Laravel development server started: http://127.0.0.1:8000

And access to http://localhost:8000 via ssh tunneling. then no problems!! what's wrong with production??

jihuichoi commented 6 years ago

I figured this out. it's about directory permission. app directory should belongs to www-data, at least as group.

When I change the ownership as www-data:www-data, everything works fine. and when I change the ownership as myaccount:www-data, everything works fine as well, but no confirm message.

image