Support the ongoing development of Laravel.io →
posted 9 years ago
Installation

Hi I received this error (error log) when I try to access my website in production.

mod_fcgid: stderr: PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/................... on line 50

Can you please help ?

Last updated 2 years ago.
0

@jpferras, looks like your php version is outtated.

<shameless self promotion> If it may be useful to you, i created a test script that verifies the server configuration against Laravel requirements: http://github.com/ealore/laravelrequirements </shameless>
Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

jfperras jfperras Joined 3 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.