Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO
Register Members New Posts Donate Unanswered Posts Site Spy Search


Reply
 
Thread Tools
  #1  
Old 22-09-2007, 09:11 PM
Drewski526's Avatar
CJ New Member
 
Drewski526 is offline
 
Join Date: Sep 2007
Last Online: 08-10-2007 10:45 PM
Posts: 4
iTrader: (0)
Drewski526 is on a distinguished road
Default webserver help with mysql

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.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 19-11-2007, 07:21 PM
leoh187's Avatar
leoh187  United Kingdom
CJ Donator
 
leoh187 is offline
 
Join Date: Nov 2007
Last Online: 07-08-2008 08:54 PM
Posts: 57
iTrader: (0)
leoh187 is on a distinguished road
Default webserver help with mysql

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
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP mysql, creating a drop down list that takes fields from table in mysql Samantha0101 Web Design, Hosting & SEO 19 05-04-2008 02:25 PM
mysql and hosting company MySlowQuietLife Web Design, Hosting & SEO 4 22-02-2008 09:25 AM
Can't connect with with MYSql sever myselfsoon Web Design, Hosting & SEO 1 21-10-2007 02:49 PM
What is the best Apache/PHP/Mysql package for... firesauce Windows Operating Systems 2 19-03-2007 04:06 AM
How do I upgrade CPanel, PHP, and MySQL, as... andrewwpeace Web Design, Hosting & SEO 1 19-03-2007 03:22 AM


Copyright ©2006 - 2008 Computer Juice.

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

Page copy protected against web site content infringement by Copyscape