-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Parse error when bin/grav install #25
Comments
What PHP version are you using? A version 5.4 or higher is required to run Grav [reference] |
I suspect you are running PHP 5.3 in your CLI because that error is tripping up on the new PHP array short syntax: |
You are right, upgrading to PHP 5.4 works. Thank you. |
We need version check to bin/grav as well. |
Now exists properly if it detects the php version doesn't match the one required. |
hi, i use xampp v3.22 with PHP Version 5.6.11 and when i want to install a module or do something i take an error: "You are running PHP 5.3.19, but Grav needs at least PHP 5.4.0 to run". |
Your version of xampp looks outdated, it's using PHP 5.3 in the command line. Upgrade xampp and it should be fine. |
i install new version of xampp and its php version is 5.6.11 when i look at phpinfo |
Where are you getting that error, in the command line (running gpm) or in the browser? |
Command line |
The version used in the web server is different than the command line PHP version. I'm not sure how to upgrade that in xampp. You might want to check that in the xampp docs / ask in their forums. |
(you can still install a plugin by downloading the latest version in the zip package and put it in /user/plugins, but of course using the command line is more convenient) |
my used programs: MINGW32 (Git Bash), XAMPP the last version (PHP 5.6.11) and grav last version, but i could not run any module with comman line... |
@erata Grav does not require a database, so why are you using XAMPP? Why don't you try with the PHP internal server, so you can run PHP both from web browser and cli with a single configuration? Here's a guide that could help you. http://diblas.net/blog/how-to-install-php-to-run-grav-cms-under-windows. Anyway, if you want to use XAMPP, try to find out how to configure the cli with XAMPP. Good luck |
hi, i install php and apache but again the message about php version low... |
I think you just need to add the path to the correct PHP version to use. I'm not using Windows so I don't know the exact procedure, but I found these tutorials you can follow to change the PHP version it uses |
hi, i found the problem. it arise from iis express php installation which i install with web installer platform before, it use php 5.3 version and git bash see this program's php version. after i remove iis php the problem resolved. thanks, |
Glad you sorted it out! |
Hi, I know this is an old thread but I am also getting the parse error and I can explain the problem yet I do not know the way around. |
Your hosting should provide a way to update the CLI version of PHP. |
git clone grav.git
bin/grav install
Parse error: parse error in /Users/corey/Programs/webroot/grav/system/src/Grav/Console/CleanCommand.php on line 15
The text was updated successfully, but these errors were encountered: