V
V
vrazbros2018-06-20 14:31:35
PHP
vrazbros, 2018-06-20 14:31:35

How to setup php in vagrant?

Downloaded from https://puphpet.com/ configuration for ubuntu 16.04 + apache + php. For the awesome.test site, php works, but if you access the virtual machine via ip 192.168.56.101, then the php code is displayed in plain text, how to add another virtual host on the vagrant and make php work there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kalinnikov, 2018-06-20
@Growman

src/PuphpetBundle/Resources/config/apache/defaults.yml
This file lists the vhost settings for Apache.
Change the host to the one you need or put an asterisk instead of the host name *
Should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question