gbryant200
1 month ago

Homestead mapping Folders

Posted 1 month ago by gbryant200

I'm trying to use Apache in Homestead. I'm using homestead/laravel 7.2.1 box. I've searched and searched and can't find anything that works. I want to sync /var/www to to c:/Users/<username>/projects but the folders are not synchronizing (<username>is just a placeholder; real code has my actual username inserted).

Homestead.yaml excerpt:

folders:
    - map: c:/Users/<username>/projects/ep
      to: /var/www/ep

    - map: c:/Users/<username>/projects/sa
      to: /var/www/sa

    - map: c:/Users/<username>/projects/na
      to: /var/www/na

the sites are type: apache; (flip doesn't work to switch web servers)

I modified the /var/www

[email protected]:/var/www$ sudo usermod -a -G www-data vagrant
[email protected]:/var/www$ sudo chown -R vagrant:www-data /var/www
[email protected]:/var/www$ sudo chmod -R 775 /var/www

When the homestead/laravel box starts is shows:

Mounting shared folders . . . 
/vagrant => C:/Users/<username>

Any ideas why the folders are not synchronizing? Do I need to set the owner:group to vagrant? I want to use phpStorm for development locally with a Homestead box and Git to maintain the production server (using Apache). Can you user %USERNAME% in the Homestead.yaml file so I can give this box to other users?

I'm using virtual box 6.0.8 r130520 (Qt5.6.2) and the latest version of Vagrant - 2.2.5

Thanks for you help.

update: I upgraded to version 8.0.0 of homestead/laravel vagrant box; no help

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