Getting PHP to work with apache to run .php files through browser [closed]
- by Kevin Duke
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?