After the standard build of the virtual machine for vagrant, php does not work on the PUPHPET website. Build: apache, php. I took the build files from here: https://yadi.sk/d/GlEHNyfxcbDgw

As a result, the Apache works, all without errors, but when you try to call a php file is displayed as follows:

screenshot 1

When you try to invoke the command php -v displays

screenshot 1

Does anyone know what could be wrong?

  • one
    Apache is not configured to handle php. Or php code in general, or files with the extension php, phtml. Apache config needed - BOPOH
  • Another good idea would be logs from the start of the vagrant. - Nofate

1 answer 1

may not connected mol for php .

How to connect it in the custom assembly you use should be written in the accompanying documentation.


and in debian- based distributions, in the case of apache2 and libapache2-mod-php5 packages installed from the distribution repository, you can use the following commands to enable / disable a module:

 $ sudo a2enmod php5 $ sudo a2dismod php5 

after which it will be necessary to restart apache .

  • Yes, it is clear that the problem with the module, the question is why this module is not loaded using the settings from puphpet.com . This is a site bug or mine - Alexander Zhelezovsky
  • look in the logs. - aleksandr barakin