see in browser from domain(set hosts file) but not see the file in Mac(I search all Mac for index.php and nothing

33 views
Skip to first unread message

LSE

unread,
Apr 11, 2017, 4:19:48 AM4/11/17
to Vagrant

I use a Mac - created file in VM(vagrant ssh) index.php see in browser from domain(set hosts file) but not see the file in Mac(I search all Mac for index.php and nothing found)... where is it...? puphpet config.yaml apache section is // using virtual box

[this posted and here https://github.com/puphpet/puphpet/issues/2638 as this says "Look at your shared folders. Whatever corresponds to /var/www/awesome/web" .... WELL can you provide sample config.yaml code for shared folders....???]


apache:
    install: '1'
    settings:
        version: 2.4
        user: www-data
        group: www-data
        default_vhost: true
        manage_user: false
        manage_group: false
        sendfile: 0
    modules:
        - proxy_fcgi
        - rewrite
    vhosts:
        av_ov9g4n4m1oar:
            servername: awesome.dev
            serveraliases:
                - www.awesome.dev
            docroot: /var/www/awesome/web
            port: '80'
            setenvif:
                - 'Authorization "(.*)" HTTP_AUTHORIZATION=$1'
            custom_fragment: ''
            ssl: '0'
            ssl_cert: LETSENCRYPT
            ssl_key: LETSENCRYPT
            ssl_chain: LETSENCRYPT
            ssl_certs_dir: LETSENCRYPT
            ssl_protocol: ''
            ssl_cipher: ''
            directories:
                avd_svq42dy2219h:
                    path: /var/www/awesome/web
                    directoryindex: 'index.php app.dev'
                    options:
                        - Indexes
                        - FollowSymlinks
                        - MultiViews
                    allow_override:
                        - All
                    require:
                        - 'all granted'
                    custom_fragment: ''
                    provider: directory
            files_match:
                avfm_e0dxtzqs5xah:
                    path: (app_dev|config)\.php$
                    sethandler: 'proxy:fcgi://127.0.0.1:9000'
                    setenv:
                        - 'APP_ENV dev'
                    custom_fragment: ''
                    provider: filesmatch
                avfm_cguur35tbh1i:
                    path: app\.php$
                    sethandler: 'proxy:fcgi://127.0.0.1:9000'
                    setenv:
                        - 'APP_ENV prod'
                    custom_fragment: ''
                    provider: filesmatch
                avfm_vf80if55ingm:
                    path: \.php$
                    sethandler: 'proxy:fcgi://127.0.0.1:9000'
                    custom_fragment: ''
                    provider: filesmatch

LSE

unread,
Apr 11, 2017, 4:29:00 AM4/11/17
to Vagrant
NEEDED MODIFY (about shared folders) config.yaml OR THIS Vagrantfile???

Alvaro Miranda Aguilera

unread,
Apr 11, 2017, 8:49:40 AM4/11/17
to vagra...@googlegroups.com
HELLO

So, Say _YOU_ want to have a shared folder, then you can update the project to include that:

/var/www/awesome/web -> web

ie

 






On Tue, Apr 11, 2017 at 10:28 AM, LSE <lsepo...@gmail.com> wrote:
NEEDED MODIFY (about shared folders) config.yaml OR THIS Vagrantfile???

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/53d47ebc-876a-4c93-98ed-da307c867027%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

LSE

unread,
Apr 11, 2017, 12:05:58 PM4/11/17
to Vagrant
if having ./  and forgot put ./web where points? this is in vagrantfile or in config.xml ? can change now and refresh vagrant without re-downloading?


this needed install too if not yet ? Mac OS 
NFS is highly recommended for OSX and Linux! Make sure to install the 
vagrant-bindfs plugin with $ vagrant plugin install vagrant-bindfsMore information about NFS, and more information about vagrant-bindfs.




On Tuesday, April 11, 2017 at 3:49:40 PM UTC+3, Alvaro Miranda Aguilera wrote:
HELLO

So, Say _YOU_ want to have a shared folder, then you can update the project to include that:

/var/www/awesome/web -> web

ie

 





On Tue, Apr 11, 2017 at 10:28 AM, LSE <lsepo...@gmail.com> wrote:
NEEDED MODIFY (about shared folders) config.yaml OR THIS Vagrantfile???

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.



--
Alvaro

LSE

unread,
Apr 11, 2017, 12:58:10 PM4/11/17
to Vagrant
I do not have the synced_folder in vagrant file... must add it add apply vagrant provision ...?



Vagrant.configure("2") do |config|
  # other config here

  config.vm.synced_folder "src/", "/srv/website"
end

Alvaro Miranda Aguilera

unread,
Apr 11, 2017, 3:25:31 PM4/11/17
to vagra...@googlegroups.com
hello

as you are using phuphet i will suggest do a new project on their web app, and then do vagrant up

the box is already downloaded so will use the same template


use and test several of those and see what works better for you

alvaro

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/0d3577c9-a455-4180-9ece-4ed1c2d6f6f8%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

LSE

unread,
Apr 12, 2017, 2:15:36 PM4/12/17
to Vagrant

  config.vm.synced_folder "src/", "/srv/website"

vagrantfile Not exist this^^^^? how then to share a folder in Mac ? Can be missing this line and share folder be in from config.yaml...?



--
Alvaro

Leonidas Savvides

unread,
Apr 13, 2017, 12:45:54 AM4/13/17
to vagra...@googlegroups.com

Where VMs vagrant boxes saved in mac, if using VirtualBox Vagrant, ... so exclude from Time Machine. ..?

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/HHxVQs21cbc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c4699159-370b-4c33-a91b-98c5919e2cbf%40googlegroups.com.

LSE

unread,
Apr 13, 2017, 8:41:07 AM4/13/17
to Vagrant
what to put for shared folder? this folder must exist? also install this>> ?
NFS is highly recommended for OSX and Linux! Make sure to install the vagrant-bindfs plugin with $ vagrant plugin install vagrant-bindfs . More information about NFS, and more information about vagrant-bindfs.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Apr 14, 2017, 3:19:30 PM4/14/17
to vagra...@googlegroups.com
virtualbox usually use ~/VirtualBox VMs


To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAJhtV0bPQEY9uFLzdsqCdQD2iXTMGXBEn9y5N%3D2hybKDxRWptA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Apr 14, 2017, 3:21:01 PM4/14/17
to vagra...@googlegroups.com
you don't need a plugin

use first as is shared folder and evaluate, then test nfs.

if the folder doesn't exist, you can create on the host, or use

, create: true

ie

create (boolean) - If true, the host path will be created if it does not exist. Defaults to false.

alvaro

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/6cd3e638-5f9b-4270-badf-50be06b6351a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages