I followed the setup as described here. The tutorial gives you everything you need to connect nginx and hhvm on Ubuntu 16.04.
Then I installed Laravel 5.3 project example provided by Momo. Thank you so much for the excellent example. Don’t forget to set the permission for storage
and bootstrap/cache
.
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Also, to have a prettier dummy domain, this tutorial helps you set those nginx sites as well as tells you what to edit in your host file.
So I gave my Laravel project name and domain momo.dev (because it’s cool and at the same time give ’em credits). Test it out.. and voila.
.. but everytime I click on any menu in top navigation, I got this 🙁
It happened on any link other than the ‘/’ routes. So I suspected it to be routing problem in nginx or hhvm.
The solution is simple : RTFM. Change the try_files
directive, replace =404
at the end of the line with
/index.php?$query_string
It’s located at the bottom of the page, so make sure every time you read a manual, read it thoroughly.