Apache2 does not interpret PHP

2

I usually installed PHP and APACHE2 but it does not interpret the PHP code, follow test code:

<?php echo "teste"; 

It returns me an "html" page with this typed, and comes from a "print" written test

Files not found in the / var / www / html folder with 755 permissions I did not change anything in the apache2 settings I just gave start

I read about changing the httpd.conf file but I do not find it inside my system

    
asked by anonymous 05.06.2018 / 17:47

1 answer

2

I have the same problem, I solved installing the apache php module, in my case I use ubuntu just install this package libapache2-mod-php5

sudo apt-get install libapache2-mod-php5
    
08.06.2018 / 14:19