How can I fix the HTTP ERROR 500:

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /../framework/src/Illuminate/Foundation/helpers.php on line XXX

Solution:

Laravel 5.5 and higher requires PHP 7.0.0 or greater.

Please ensure these components are installed on your server before installing the script:

  • PHP 7.0.0 or greater (with PHP exec function, etc.)
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • GD or Imagick
  • PHP Fileinfo extension
  • PHP Zip Archive
  • Rewrite Module (Apache or Nginx)

To check the PHP version on your server, create a PHP file (ex: /phpinfo.php) with this content:

<?php
phpinfo();

Was this article helpful?

Thank you for your feedback!

Still need help? Create a support ticket

Create a Ticket

Common Issues

Mar 24, 2026