Does not execute PHP files only shows the content

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Does not execute PHP files only shows the content

Giannino Di Tizio A.
Hello,
I'm new to this vagrant.

After having downloaded vagrant ver. 2.0.1 and having generated with puphpet a machine for VirtualBox with Ubuntu 16.04, Apache, PHP 5.6 and MySql 5.7.
Up to here everything ok, the localhost runs well.

but when trying to execute scripts file in PHP, it does not run and only shows the content of the script on the screen.

a file as basic as: infophp.php

<?php
   phpinfo ();
?>

it does not run. and it only shows the content of the script.

Any ideas of what is left to do?


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does not execute PHP files only shows the content

Alvaro Miranda Aguilera
that means the webserver is not processing php.

perhaps open an issue in puphpet?

Alvaro

On Tue, Dec 5, 2017 at 10:50 PM, Giannino Di Tizio A. <[hidden email]> wrote:
Hello,
I'm new to this vagrant.

After having downloaded vagrant ver. 2.0.1 and having generated with puphpet a machine for VirtualBox with Ubuntu 16.04, Apache, PHP 5.6 and MySql 5.7.
Up to here everything ok, the localhost runs well.

but when trying to execute scripts file in PHP, it does not run and only shows the content of the script on the screen.

a file as basic as: infophp.php

<?php
   phpinfo ();
?>

it does not run. and it only shows the content of the script.

Any ideas of what is left to do?


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ezLkYhhof%3Dn3yXKoQ-oSu72Bu8%2B5L-OoO%2B%3DgQAg1qSUbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does not execute PHP files only shows the content

Giannino Di Tizio A.
Thanks Alvaro

El martes, 5 de diciembre de 2017, 19:34:18 (UTC-4), Alvaro Miranda Aguilera escribió:
that means the webserver is not processing php.

perhaps open an issue in puphpet?

Alvaro

On Tue, Dec 5, 2017 at 10:50 PM, Giannino Di Tizio A. <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="CLJCAK_GAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">gdit...@...> wrote:
Hello,
I'm new to this vagrant.

After having downloaded vagrant ver. 2.0.1 and having generated with puphpet a machine for VirtualBox with Ubuntu 16.04, Apache, PHP 5.6 and MySql 5.7.
Up to here everything ok, the localhost runs well.

but when trying to execute scripts file in PHP, it does not run and only shows the content of the script on the screen.

a file as basic as: infophp.php

<?php
   phpinfo ();
?>

it does not run. and it only shows the content of the script.

Any ideas of what is left to do?


--
This mailing list is governed under the HashiCorp Community Guidelines - <a href="https://www.hashicorp.com/community-guidelines.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.hashicorp.com%2Fcommunity-guidelines.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGHa_CaKfZaJiwbkUndUQbVGlQCDw&#39;;return true;">https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: <a href="https://github.com/mitchellh/vagrant/issues" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fmitchellh%2Fvagrant%2Fissues\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHxcA5DuHlQlPInMi_k1Pz4pMNqNw&#39;;return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="CLJCAK_GAQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">vagrant-up+...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/vagrant-up/7b0e8a6a-d4de-4063-acb4-9f90b2bd6f4e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/cc76923f-d708-4451-845b-6a61528383fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.