3
abkcode
5y

I have been developing laravel projects with PHP 7.2 for a month on my new macbook air. Today i had to work on php5.6 project and got really frustrated cause homebrew doesn't have php5.6.

Should i install ubuntu?
Is there anyone using ubuntu on macbook air?
What are the problems?

Comments
  • 2
    I hope the only reason why u are working with php5.6 is to upgrade the project to at least php7.1
  • 2
    One word. Docker.
  • 0
    cough*

    a r c h i s q u i c k e r t o i n s t a l l
  • 1
    @gintko @dennie170 I heard of docker, but don't know how things work.

    Just tell me one thing:
    I will have my project files on mac folder which i can edit via sublime on mac. Then i will add that folder as volume to the ubuntu docker and access the project via chrome on mac.

    Is that possible?
  • 1
    @abkcode that's totally possible. docker-compose will create a mount which automatically syncs, and it will expose a port so you can visit it in the browser.
  • 1
    @dennie170 Thanks I ll learn docker now.
  • 1
    Be careful with your boot loader. Is it it php56 you want to install? Brew must have it?
  • 1
    @dennie170 Thanks for showing the right path. I can now experiment with containers and not break my machine.
  • 1
    Good to hear! Once you go Docker, you'll never go back
Add Comment