lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #1  
Old 22nd Sep 2007, 14:11
New Member Group
 
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  
Old 19th Nov 2007, 13:21
Donor Group
 
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
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.