mostafalaravel
5 months ago
647
3
Servers

How to change PHP version in homestead

Posted 5 months ago by mostafalaravel

After doing the vagrant up, when I check the php version :

php -v
PHP 7.3.2 (cli) (built: Feb  5 2019 23:16:38) ( ZTS MSVC15 (Visual C++ 2017) x86 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.2, Copyright (c) 1998-2018 Zend Technologies

Homestead.yaml:

ip: 192.168.10.10
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
    - ~/.ssh/id_rsa
folders:
    -
        map: 'C:\Users\mabdella\Codes\HighAxions'
        to: /home/vagrant/code
sites:
    -
        map: highaction.test
        to: /home/vagrant/code/public
        php: "5.6"
databases:
    - homestead
name: highaxions
hostname: highaxions

As you can see event the php version value is 5.6 I still have that problem !

Please sign in or create an account to participate in this conversation.