Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2003, 02:33 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default http://localhost not working

I just got done setting up IIS and PHP. For some reason when I go to my web browser and type in http://localhost/ i get a 404 error but when i type it http://garrett/ (my computer name) i get an "under construction page". Could anyone tell me why the localhost isn't working?

 
Old October 15th, 2003, 05:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default

check what did you specify as <DocumentRoot> in your php.ini file. check also whether you properly configured IIS with php... btw... i suggest you get apache ...
 
Old October 16th, 2003, 04:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<DocumentRoot> isn't a php.ini configuration directive, it's found in Apache's httpd.conf config file.


Take care,

Nik
http://www.bigaction.org/
 
Old October 19th, 2003, 05:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Moharo
Default

sorry for that mistake, <DocumentRoot> is really a Apache's configuration file. sorry for that
 
Old October 19th, 2003, 06:43 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You may need to add localhost 127.0.0.1 to your hosts file. On my machine that is under the system directory in drivers\etc\hosts.


--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't access http://localhost... with Firefox Mikael71 Internet Information Services 0 December 22nd, 2007 07:17 AM
http://ip address:8080 is not working in Linux tehte Apache Tomcat 1 January 5th, 2007 05:22 AM
http://localhost:8080 asks me user name? mukarram J2EE 0 January 24th, 2006 02:21 AM
http://localhost:8080/ (Why??) ababb BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 10 January 2nd, 2005 08:36 PM
http://localhost/5040/punctual.aspx SniffenLik BOOK: Beginning ASP.NET 1.0 10 July 21st, 2004 01:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.