Level 3
Had the same issue a few days ago, manually entering the php bin path instead of php solved it for me. But that was under a plesk environment, not sure about this case.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello everyone, I have to install Laravel 5.3 on my "Ubuntu 14.04.5 LTS" server, But show for me the PHP Error:
PHP message: PHP Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 475
I have PHP 7, And i installed all required Extension
My PHP Modules:
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
php -v :
PHP 7.0.10-2+deb.sury.org~trusty+1 (cli)
Any help please Thanks a lot ^^
This problem has been fixed after add this line in "nginx.conf" file:
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
Please or to participate in this conversation.