D
D
Dmitry Threy2015-08-01 13:59:49
PHP
Dmitry Threy, 2015-08-01 13:59:49

Trouble with Vagrant/VM?

I downloaded VM/Vagrant , so I installed it, assembled the config in puphet . Below I will bring out those in which I probably made a mistake, because I am spinning here for the first time.
Shared folders:

source: 'c:/dev/webroots'
target: /var/www/webroot

Apache login:
servername: role-play-engine.net
docroot: /var/www/role-play-engine.net

I'm sitting under Windows, so right after the happy inscription Happy programming , I registered the desired value in the hosts and launched the virtual machine. I turned to the entry indicated in the host, namely:
"ip, который был получен в puphpet" role-play-engine.net

It gave me:
KiRGa1h4yGs.jpg
Although actually in the dev/webroots folder on my local computer there is an index.php file. Actually what is my problem? Am I missing something somewhere in the config?
Or is it possible in general about the work of Vagranta and its "shared folders"? How to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-08-01
@more_cry

target: /var/www/webroot and
docroot: /var/www/role-play-engine.net
are slightly mismatched.
Your project will be outside the docroot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question