Getting PHP to work with apache to run .php files through browser

Posted by Kevin Duke on Server Fault See other posts from Server Fault or by Kevin Duke
Published on 2011-03-04T22:29:16Z Indexed on 2011/03/04 23:26 UTC
Read the original article Hit count: 346

Filed under:
|

I have VPS running Debian 5.0 (I think) and I would like to get it to run PHP files. I was told it needed to be configured with Apache. I tried entering the command apt-get install apache2 php5 libapache2-mod-php5. But there was no change. Console output: http://pastebin.com/sVMWq6mA

This is everything in my /etc/apache2/mods-enabled: http://img35.imageshack.us/img35/6474/modsb.jpg

My webserver can be accessed here: http://206.217.223.136/test/ In my test.php file I have the code :

<?php
 phpinfo();
?>

but instead of displaying the page, it tries to download it. How can I fix this?

© Server Fault or respective owner

Related posts about php

Related posts about apache