Web Development Thread, PHP file lists contents in Coding and Web Development; When I try to open localhost/index.php, I just get a list of what's in the index.php. It doesn't execute. The ...
19th January 2008, 09:06 PM #1
- Rep Power
PHP file lists contents
When I try to open localhost/index.php, I just get a list of what's in the index.php. It doesn't execute. The apache server seems to be running OK and I think PHP is installed OK. Any ideas what's wrong ?
19th January 2008, 09:09 PM #2
Apache doesn't know to use PHP to handle .php files.
If the PHP modules for PHP is installed, IIRC you will need something like this in your Apache conf file:
Is this on Linux or Windows? If Windows then you could use an all-in-one Apache/PHP/MySQL package such as WAMP.
AddType application/x-httpd-php .php
Last Post: 29th January 2013, 10:16 AM
Last Post: 5th February 2009, 05:46 PM
By Grommit in forum Windows
Last Post: 17th April 2007, 09:28 PM
Last Post: 21st January 2007, 02:51 PM
By tosca925 in forum Windows
Last Post: 16th October 2005, 12:46 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)