Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cipsas's avatar
Level 10

How upgrade php, mysql in homestead?

After run 'homestead update' command, homestead updated, but not updated php and mysql. Do I really need to destroy and recreate vm? How you guys update homestead with php and mysql?

0 likes
4 replies
ejdelmonico's avatar

You should be running 'vagrant box update' instead of 'homestead update'. You are going to have to provide more info for us to provide any help. What version? Windows? etc

ejdelmonico's avatar
Level 53

Also, after the update:

  • vagrant ssh
  • sudo apt-get update
  • sudo apt-get upgrade
4 likes
cipsas's avatar
Level 10

Thanks @ejdelmonico . I run vagrant box update , I get:

==> default: This machine doesn't have a box. Won't update anything.

I use Mac.

I run command vagrant box list, and get result:

base                        (virtualbox, 0)
chef/centos-6.5-i386        (virtualbox, 1.0.0)
joomlatools/box             (virtualbox, 1.2.2)
laravel/homestead           (virtualbox, 0.1.9)
laravel/homestead           (virtualbox, 0.2.0)
laravel/homestead           (virtualbox, 0.2.2)
laravel/homestead           (virtualbox, 0.2.6)
laravel/homestead           (virtualbox, 0.3.0)
laravel/homestead           (virtualbox, 0.4.2)
precise32                   (virtualbox, 0)
precise64                   (virtualbox, 0)
primalskill/ubuntu-trusty64 (virtualbox, 1.0.0)
ubuntu/trusty64             (virtualbox, 14.04)

Then I run homestead update:

==> default: Checking for updates to 'laravel/homestead'
    default: Latest installed version: 0.3.0
    default: Version constraints: <= 0.3.0
    default: Provider: virtualbox
==> default: Box 'laravel/homestead' (v0.3.0) is running the latest version.

it appears vagrant use v0.3, but not v0.4.2 ?

ejdelmonico's avatar

Are you running the command from the folder Homestead is installed in?

1 like

Please or to participate in this conversation.