I am trying to install latest lumen in my shared hosting. I have created a folder named lumen in public_html and placed all the files in that folder. When I browse the url, for example: https://example.com/lumen it gives me 500 error code.
The same code is running fine in localhost. When I upload it in my shared hosting it stops working. I have added a new .htaccess
in the root of lumen folder including this code:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
Also tried to edit the .htaccess
file of public folder as well, and also the index.php
, but nothings work.
I couldn't find any appropriate result about this problem. All I can find is about laravel. Can anyone help me with this? The error log of public folder is included:
[25-Oct-2018 06:54:54 UTC] PHP Parse error: syntax error, unexpected '=' in /home2/lilyserv/public_html/lumen/vendor/illuminate/config/Repository.php on line 6
8