phpinfo(); in /var/www/html not working

I'm using netbeans and have lamp installed.

Now I'm trying to test the PHP installation so I configured Netbeans to copy the files to the /var/www/html/TEST_01 folder so the file is in localhost/TEST_01/index.php

When i go there with the browser all i see is a blank page, if i inspect the page i can see this:

<?php
phpinfo();
?>

So my guess is the index.php file is being treated as a .html file. I already tried putting the file in other folders like /var/www/test/index.php without luck.

3

1 Answer

Fixed it installing libapache2-mod-php5

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like