Apache shows me the php code instead of executing it

1

Good I come with this question that I have tried to find solution but I can not find it I have little experience in linux and I am learning, the version where I have everything installed is ubuntu 16 I am using vagrant creating a server with virtual machines .

already install everything and verify by entering the IP server of the virtual machine and it tells me that the server is fine

but when executing a file php the browser instead of showing what php processes shows me the code of the file

and it's the function phpinfo()

    
asked by jean carlos larrota ortega 05.12.2018 в 01:25
source

1 answer

0

Try with:

sudo apt-get install libapache2-mod-php
    
answered by 05.12.2018 / 14:07
source