image
image

Go Back   macosx.com > Mac Help Forums > Hardware & Peripherals

Reply
 
LinkBack Thread Tools
  #1  
Old October 2nd, 2001, 12:38 PM
Registered User
 
Join Date: Aug 2001
Location: California
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
ms_kle is on a distinguished road
Unhappy How can I get apache to serve my local website without a network connection??

I'm trying to view my local web site at http://204.161.58.5/~kle/index.php, where 204.161.58.5 is the ip address of my G4 powerbook, without a network connection, but it doesn't work. The web browser keeps looking and looking, but no response. I noticed that when I go to the System Prefs and view the Sharing Options, the "Web Sharing" option is "On," but my IP address is not present at the bottom of the screen... When I click the little "edit" button next to the empty space to go to the "Network Setings" pane, the IP address is there where it should be... When I connect a live CAT5 wire to the ethernet port and reboot, the IP address appears in the "Sharing" pane when I go to look at the prefs again. Can anyone tell me how to get my G4 Powerbook/500 to start web sharing services even though I don't have a live CAT5 connection? It's annoying to try and design a web page and not be able to see it... Thanks in advance!
Reply With Quote
  #2  
Old October 3rd, 2001, 12:56 AM
Registered User
 
Join Date: Aug 2001
Location: MN, USA also known as Hell frozen over
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
MacCheetah3 is on a distinguished road
Hi
If I understand what you are trying to say you are thinking way too hard. You want to look at a file on your hard drive with your browser? Just go to your browser-->File-->Open-->Locate the file (I guess index.php)-->Click Open. Or if you want to feel cool go to the the url bar and type file://(and the path such as this for the Apache's default page in Mac OS 10.0.4 file://localhost/PowerBook%20G3%20OS%20X/Library/Webserver/index.en) PowerBook G3 OS X is my hard drive so replace this with your hard drive name and %20= (a space). Is this what you wanted?
__________________
MacCheetah3
Apple PowerBook G4 Titanium 1GHz, 1GB, 60GB, SuperDrive, Airport, Mac OS X, and 15GB iPod
Debug Computer Services http://www.click2debug.com
Reply With Quote
  #3  
Old October 3rd, 2001, 03:43 AM
Registered User
 
Join Date: Aug 2001
Location: California
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
ms_kle is on a distinguished road
Thanks for the reply... but it's a little more complicated than that... I'm trying to view a website that I'm developing with embedded PHP scripts... It's not a flat file, so I need Apache to actually serve the file so that the PHP is parsed and interpreted... So.. I need to do this on the road and can't get apache started without my computer being connected to a live wire first... I'm hoping to find a way to start Apache services without a connection...
Reply With Quote
  #4  
Old October 3rd, 2001, 04:58 PM
Registered User
 
Join Date: Oct 2001
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Flipsidejones is on a distinguished road
asking the obvious here... have you simply tried http://localhost/ ?
Reply With Quote
  #5  
Old October 3rd, 2001, 06:59 PM
Registered User
 
Join Date: Aug 2001
Location: California
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
ms_kle is on a distinguished road
of course i have... try it yourself.. quit from IE and unplug your network connection... then restart IE and try accessing http://localhost/~username/ ... it won't work...
Reply With Quote
  #6  
Old October 3rd, 2001, 07:47 PM
Registered User
 
Join Date: Aug 2001
Location: California
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
ms_kle is on a distinguished road
127.0.0.1 WORKS!!! Thanks to Avelanz!

Ok... http://localhost/~username/ & http://localhost/ don't work without a live network connection connected to your ethernet port, but http://127.0.0.1/~username & http://127.0.0.1/ do work with or without a connection!
Reply With Quote
  #7  
Old October 3rd, 2001, 07:49 PM
Registered User
 
Join Date: Aug 2001
Location: California
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
ms_kle is on a distinguished road
oh yeah... you must have Mac OSx 10.1 installed for http://127.0.0.1/ to work... otherwise IE gets killed.... at least on my box...
Reply With Quote
  #8  
Old October 15th, 2001, 03:03 PM
jhamlet's Avatar
Registered User
 
Join Date: Oct 2001
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
jhamlet is on a distinguished road
Lightbulb

I use my machine to develop Web Sites using MySQL, Perl, SSI etc...

It's not too complicated, but let's see if I can spell it out correctly:

To find a web-site on the internet your computer needs to turn a name "www.whatsitsname.com" to an I.P. Address "127.1.1.154" and you usually use a Domain Name Server (DNS) to resolve those. Well, in a way you can set up your own on your MacOS X.

Open NetInfo Manager in your Utility Applications.

You're going to need an Administrators access to change these things, so go to "Domain > Security -> Authenticate". Type in your Administrators user-name and password.

In the interface you'll see three columns at the top, and a display window at the bottom. In the center column at the top, find and select "machines". In the column at the right a list of machines will show up.

Select "localhost" and 'command-D' to duplicate that record.

Select the "localhost copy" and in the window at the bottom of the interface change the name from "localhost copy" to whatever you want. I use the name of the website I'm developing with the ".me" extension.

You'll be getting some Alert dialogs asking you to confirm these changes. Just OK them and move along.

Quit NetInfo Manager and launch your browser. If you've got your httpd.conf file for Apache set up correctly (which I'm not going to go into now), and you've got Web Sharing turned on, you should be able to type into the address bar "http://" + whatever name you made up in the earlier site, and you'll get your web-site to show up.

Making sure your development directories and deployment directories match... well, if you're developing websites, you should know how to do this stuff...

-jerry
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
local host network settings jango Design & Media 4 January 9th, 2004 12:46 PM
SHUTDOWN without warning SCARY!! astro_sk Mac OS X System & Mac Software 10 May 16th, 2003 02:45 PM
Jaguar & OS 9 network connection failing suzerain Mac OS X System & Mac Software 2 October 12th, 2002 07:12 PM
How-To serve website behind DHCP address. jove Apple News, Rumors & Discussion 4 June 4th, 2002 12:19 AM


All times are GMT -5. The time now is 01:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.