New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Join today!

• Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals


Apple Notebooks Apple's notebook computers including MacBook Pro, MacBook, MacBook Air, PowerBook, and iBook.

Reply  
Thread Tools
mohammed

 
Member Since: Jan 30, 2006
Posts: 27
mohammed is on a distinguished road

mohammed is offline
Setting Localhost on Mac

Hello Friends,

Just wanted to make this a as a quick Post.
I am trying to set my local folder as localhost, the way we set in windows.

I am a webmaster and bought a new apple iBook 12" and now i am trying view my websites locally as I would be working on it most of the time.
I guess there is not much complication in doing this, but still i was not able to do this.

Can anyone please reply to this post soon.

Thanks in advance.

White Eagle.
Reply With Quote
antizero
Guest
 
Posts: n/a

The good thing about Mac OS X is that Apache comes built in, you just have to enable it. Go to System preferences > Sharing > enable Personal Web Sharing (or ftp and whatever else you need).
Reply With Quote
mohammed

 
Member Since: Jan 30, 2006
Posts: 27
mohammed is on a distinguished road

mohammed is offline
Thanks

Quote:
Originally Posted by antizero
The good thing about Mac OS X is that Apache comes built in, you just have to enable it. Go to System preferences > Sharing > enable Personal Web Sharing (or ftp and whatever else you need).
Thanks Antizero for the reply, I really appreciate.

One more last thing. I have seen those settings, http://202.168.2.8/~mohammed/ and this is what I see.

Now how should I give the Path of the local folder in our HDD?

Can you please make it much more elabotaive.

Thanks in Advance.

Mohammed
Reply With Quote
JackTheRipper

 
Member Since: Dec 11, 2004
Location: Vancouver
Posts: 128
JackTheRipper is on a distinguished road
Mac Specs: 14" iBook 1.33 G4, 768 MB RAM, 60GB HD

JackTheRipper is offline
You have to do that in your httpd.conf I guess.

one thing, I can help you make it: 202.168.2.8/mohammed/ without the ~

example
Quote:
Alias /mohammed/ "/path/to/mohammed's/folder/"

<Directory "/path/to/mohammed's/folder">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Reply With Quote
mynameis

 
Member Since: Sep 30, 2004
Posts: 3,378
mynameis is just really nicemynameis is just really nicemynameis is just really nicemynameis is just really nice

mynameis is offline
/Library/Webserver/Documents/ is the location of the root web directory.
Reply With Quote
ekologik

 
ekologik's Avatar
 
Member Since: Dec 03, 2007
Location: Canada
Posts: 74
ekologik is on a distinguished road
Mac Specs: MacBook 2.4 GHz Intel (unibody), 2 GB RAM; iPhone 3Gs

ekologik is offline
This post seems dead but I was looking for the same thing so I thought I'd post my solution. I eventually found the installs MAMP (native) and XAMPP (ported from Windows). This will allow you to develop more complex websites, supporting PHP, MySQL, etc. Both are free. I use XAMPP on Windows and am going to try MAMP for Mac. The basic web server does not support PHP. Your browser opens local PHP files as text files displaying the code, not an actual site, and for this reason I need to install either of the above-mentioned tools.

MacBook
iPhone 3Gs
Reply With Quote
Reply

« Dropped My MacBook Pro 13"— Nothing Happened | 2007 MacBook won't recognize new hard drive »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Window users that are MAC WANNA BE'S! jdoverkill Switcher Hangout 47 10-12-2006 02:48 PM
It's called a Mac iSheep Schweb's Lounge 22 10-13-2004 05:35 PM
Connecting to Mac from PC problem beetlejelly OS X - Operating System 10 05-05-2004 12:21 AM

All times are GMT -4. The time now is 01:52 AM.

Powered by vBulletin
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.