
Hi Guys, I am trying to set up an nginx server that will run PHP on ubuntu 14.04. I have managed to work out the setup and it also runs PHP files well. However when adding a laravel project to my /usr/share/nginx/html directory I can only access the root path i.e. the index page only. All other pages are either returning a 406 or 404 error. I have really tried my best to research on the best configuration for the server however, internet forums aren't helping much. Kindly if you have managed to set-up one, please feel free to share tips. I am new with nginx. Thanks

I remember making a stack overflow entry on something similar. Not worked with nginx of late but if this may help, here it is . http://stackoverflow.com/questions/15423500/nginx-showing-blank-php-pages/25... On 24 August 2015 at 08:54, Allan Kibet via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi Guys,
I am trying to set up an nginx server that will run PHP on ubuntu 14.04. I have managed to work out the setup and it also runs PHP files well. However when adding a laravel project to my /usr/share/nginx/html directory I can only access the root path i.e. the index page only. All other pages are either returning a 406 or 404 error. I have really tried my best to research on the best configuration for the server however, internet forums aren't helping much. Kindly if you have managed to set-up one, please feel free to share tips. I am new with nginx.
Thanks
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind regards, Alex Nyika Omuyonga

to work with php you need either php5-fpm or php-cgi. install them together with php it will work. thanks, Lucas. On Mon, Aug 24, 2015 at 11:38 AM, Alex Nyika Omuyonga via skunkworks < skunkworks@lists.my.co.ke> wrote:
I remember making a stack overflow entry on something similar. Not worked with nginx of late but if this may help, here it is .
http://stackoverflow.com/questions/15423500/nginx-showing-blank-php-pages/25...
On 24 August 2015 at 08:54, Allan Kibet via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hi Guys,
I am trying to set up an nginx server that will run PHP on ubuntu 14.04. I have managed to work out the setup and it also runs PHP files well. However when adding a laravel project to my /usr/share/nginx/html directory I can only access the root path i.e. the index page only. All other pages are either returning a 406 or 404 error. I have really tried my best to research on the best configuration for the server however, internet forums aren't helping much. Kindly if you have managed to set-up one, please feel free to share tips. I am new with nginx.
Thanks
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Kind regards, Alex Nyika Omuyonga
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

herer is a guide I used to set up my VPS. Works like a charm! https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with...

The PHP works perfectly fine and I am able to render a page. the problem is s redirect error thrown every time I try to access an non-index file or route like '/' plus why is nginx configs project specific? I need to run several projects from the main public folder, I am finding it an annoying server to work with. On Mon, Aug 24, 2015 at 3:07 PM, peter Bikundo via skunkworks < skunkworks@lists.my.co.ke> wrote:
herer is a guide I used to set up my VPS. Works like a charm!
https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with...
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
participants (4)
-
Alex Nyika Omuyonga
-
Allan Kibet
-
lucas oketch
-
peter Bikundo