How to Install Laravel 5.3 on Nginx Ubuntu 14.04?

August 26, 2016 4.8k views
Nginx PHP Frameworks Ubuntu


Does everybody know how to install newest laravel 5.3 in Nginx Ubuntu 14.04? Unfortunately in this newest version of Laravel they need 5.6 PHP while what I have is 5.5 so I cannot install the vendor folder.

But when I manually upload the vendor folder, then come this error

2016/08/26 11:04:15 [error] 4501#0: *14 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /usr/share/nginx/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 475" while reading response header from upstream, client:, server:, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: ""

How can I solve this problem? Thank you so much

1 Answer

Install a development Repo in /etc/apt/sources.list with php5.6, upgrade to php5.6 and proceed with your new laravel, of course if you are absolutely sure you definitely need this )

  • Hi,

    or maybe have you ever installed laravel 5.3?

    If you have, maybe you could share here how to do it?


Have another answer? Share your knowledge.