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 ?
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 ?

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.Code:AddType application/x-httpd-php .php
There are currently 1 users browsing this thread. (0 members and 1 guests)