@fsdolphin are you using a Mac or Windows PC? For Mac, you can update to the latest version of PHP here.
Error installing Laravel 5.1 - What do I need to update, my local PHP or my Homestead box
Hi,
I got the following error when I tied to install Laravel 5.1...
Problem 1
- This package requires php >=5.5.9 but your PHP version (5.4.10) does not satisfy that requirement.
Problem 2
- laravel/framework v5.1.2 requires php >=5.5.9 -> your PHP version (5.4.10) does not satisfy that requirement.
- laravel/framework v5.1.1 requires php >=5.5.9 -> your PHP version (5.4.10) does not satisfy that requirement.
- laravel/framework v5.1.0 requires php >=5.5.9 -> your PHP version (5.4.10) does not satisfy that requirement.
- laravel/framework 5.1.x-dev requires php >=5.5.9 -> your PHP version (5.4.10) does not satisfy that requirement.
- Installation request for laravel/framework 5.1.* -> satisfiable by laravel/framework[5.1.x-dev, v5.1.0, v5.1.1, v5.1.2].
I went and update my Homestead Box and this is what I see when I type php -v
This is what I get when I type php -v in my local machine
PHP 5.4.10 (cli) (built: Jan 21 2013 15:12:32)
...
and this is what I see when I type php -v in my virtual box
PHP 5.6.7-1+deb.sury.org~utopic+1 (cli) (built: Mar 24 2015 11:23:10)
...
Do I need to update the PHP in my local machine? I was under the impression that Homestead uses the PHP version installed in the virtual box.
Why am I getting this message?
I know, I mean use that command within Homestead. Don't worry about the laravel new ... helper.
Personally, I'd just update the version of PHP on your Mac, much easier to do and gives you the benefits of not having to worry about where you run the commands from.
Hope that clears it up for you.
Please or to participate in this conversation.