Connecting Tech Pros Worldwide Forums | Help | Site Map

creating local host

Newbie
 
Join Date: Sep 2007
Posts: 12
#1: Nov 13 '07
Hey!
I wanted to test the code which iam writing and i wanted to know how to creat the local directory for coldfusion where i can test the code i've written... i am unable to test the pages as the pages doesn't get picked up from the 'localhost' but from a drive on hard disk...
The text "Sams teach yourself Coldfusion in 24 hours" talks about the localhost but i am unable to creat one, it would be helpful if someone can let me know how to do this so that i can test my code.
Regards.

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#2: Nov 14 '07

re: creating local host


You will need to set up a web server, e.g. IIS on Windows or Apache.
Newbie
 
Join Date: Sep 2007
Posts: 12
#3: Nov 14 '07

re: creating local host


Thanx for the reply.
Using my operating systems CD i have checked the IIS sharing box and installed the same, I find the websharing tab in the folder properties... but i dont know what to do next... it would helpful if U can lemme know that...
Need Ur help :)
Reagrds
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#4: Nov 14 '07

re: creating local host


If you got to http://localhost/ does the default web page show up?
Newbie
 
Join Date: Sep 2007
Posts: 12
#5: Nov 14 '07

re: creating local host


Nope. I cannot connect, it shows an error saying the same cant be done.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#6: Nov 15 '07

re: creating local host


This is now an IIS problem, so I'll leave that in the capable hands of the IIS experts who'll hopefully be able to help you resolve the problem.
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#7: Nov 15 '07

re: creating local host


What OS are you running? Is IIS installed, if so which version? You don't supply sufficient info. Thanks.
Newbie
 
Join Date: Sep 2007
Posts: 12
#8: Nov 15 '07

re: creating local host


i am using Windows XP, and yes IIS is installed on the computer...
kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#9: Nov 16 '07

re: creating local host


Sorry I don't think the solution I had in mind would work from your cd/dvd drive.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#10: Nov 16 '07

re: creating local host


Quote:

Originally Posted by naseerhamdani

i am using Windows XP, and yes IIS is installed on the computer...

I'm assuming that's XP Professional because I don't think the Home version supports IIS.

Has an Inetpub directory been created on your C drive, so you have something like:
C:\Inetpub\wwwroot ?
Newbie
 
Join Date: Sep 2007
Posts: 12
#11: Nov 20 '07

re: creating local host


I have the Inetpub\wwwroot in my C drive and i assume the problem is because of the University computer which i am working on...
I consider the computer is secure to have a vitual webserver, will it be this way if a computer is running on the secure network?
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,750
#12: Nov 21 '07

re: creating local host


Well, if it's a university computer, that might be the problem. You may need to ask someone to set it up for you because you might not have the required permissions, though I'm not sure.
Newbie
 
Join Date: Sep 2007
Posts: 13
#13: Dec 16 '07

re: creating local host


hi naseerhamdani

if you would like to know are your local host is running or not you have to try http://localhost/ from your explorer if it not worrking you have to check your system, like
open Control Panel then Add Or remove program then in the left navigation click on add/remove windows components then wait then double click on internet information system (IIs) make sure that you checked all then ok and keep on after you finsh all and click ok in all applacation and restoring files from your cd windows try to use http://localhost/
Reply