CentOS 7 PHP 5.6 cake server failure

I have installed Composer, etc. However when I issue the bin/cake server -H -p 1234 I get:

PHP Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE)

I run the bin/cake as root, any suggestions.

1 Like

What version of cakephp?
What is the full error message (Including file names)?

Based on error example you gave, I can only tell that something is wrong.

You forgot about most important PHP Parse error: syntax error, error in path_to_file on line line_number

thank you for your note.

CakePHP 3.5
PHP 5.6

And what is the rest of the error message

Hi, Thank you for your notes. I am in the process of upgrading to PHP 7. I will report back to how Cake is doing with PHP7. I will add an update tomorrow.