Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error immediately after install #36

Closed
stifflered opened this issue Aug 27, 2014 · 4 comments
Closed

Syntax error immediately after install #36

stifflered opened this issue Aug 27, 2014 · 4 comments

Comments

@stifflered
Copy link

Hello,

Getting this error on first install.

Parse error: syntax error, unexpected '[', expecting ')' in [directories/listed/here] on line 23

@rhukster
Copy link
Member

Is this the result of the bin/grav install command? Are you running PHP version 5.4 on command line? php -v will tell you.

@w00fz
Copy link
Member

w00fz commented Aug 27, 2014

See issue #25

@stifflered
Copy link
Author

Fixed. Had to add the following to my .htaccess to activate php 5.4 on my site5 testing server.

AddHandler application/x-httpd-php54 .php

Thanks for the help.

@w00fz
Copy link
Member

w00fz commented Aug 27, 2014

What version were you running? It shouldn't have failed like that. Was it 5.3?

w00fz added a commit that referenced this issue Sep 4, 2014
… to parse without failing and then check for the required PHP version (5.4+) [Fixes #36]
@w00fz w00fz added the bug label Sep 4, 2014
@w00fz w00fz modified the milestones: 0.9.1 Release, 0.9.2 Release Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants