![]() |
|
#1
|
|||
|
|||
|
hey guys, im running a server on my computer, and i was wondering, the home page is a .php file, but when i go to http://localhost/ it shows the .php file text, and not the actual website itself. i have apache installed, and i was wondering if i need mysql, i also have php 5 installed. I'm running vista, and any help would be greatly appreciated. thanks.
|
|
#2
|
|||
|
|||
|
Hi
It sounds like you havn't told the webserver to interpret .php as a PHP file. You will need to add some like similar to this to the httpd.conf file: ScriptAlias /php/" c:/path-to-php-dir/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" If you would like more instructions on how to do this, just let me know. Many Thanks Leo |