Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pol_php's avatar

problem with running the application from the server with debian 8.3

Hello I have the following problem. I created app in laravel on my computer with Win 10, PRO, 64-bit, PHP Version 7.3.2 and it works super. But when I copy app on server with Debian 8.3, PHP version 7.3.6 it's not working. When I try I have white page nothing else. I check app logs in apache2 and I have this error: "PHP Parse error: syntax error, unexpected '?' in /var/www/shopapp/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 500". What i can do more to run this app?

0 likes
4 replies
mvd's avatar
mvd
Best Answer
Level 48

Hi @pol_php

If I check this file and line I see

 return $factory->of($arguments[0], $arguments[1])->times($arguments[2] ?? null);

The ?? is available since PHP 7.0 so I guess there is also anotherPHP version (< 7) running. Can you check which PHP version is running? You can do this in the code, file public/index.php and on top

<?php
echo phpversion();
die;

Open the app and you will see the PHP version.

pol_php's avatar

Hi and thanks for replay. It's funny thing. I do that what you write and it's showing "5.6.38-0+deb8u1". But when I'm checking php version in terminal it's showing 7.3.6. I belive that's my problem. Ok and now it's working!

pol_php's avatar

Thank's again for replay. Now already work's fine

1 like

Please or to participate in this conversation.