Setting Localhost on Mac

Joined
Jan 30, 2006
Messages
27
Reaction score
0
Points
1
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.
 
A

antizero

Guest
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).
 
OP
M
Joined
Jan 30, 2006
Messages
27
Reaction score
0
Points
1
Thanks

antizero said:
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
 
Joined
Dec 11, 2004
Messages
128
Reaction score
1
Points
18
Location
Vancouver
Your Mac's Specs
14" iBook 1.33 G4, 768 MB RAM, 60GB HD
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
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>
 
Joined
Sep 30, 2004
Messages
3,378
Reaction score
61
Points
48
/Library/Webserver/Documents/ is the location of the root web directory.
 
Joined
Dec 3, 2007
Messages
74
Reaction score
1
Points
8
Location
Canada
Your Mac's Specs
MacBook 2.4 GHz Intel (unibody), 2 GB RAM; iPhone 3Gs
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.
 
Joined
Jun 25, 2013
Messages
9
Reaction score
0
Points
1
Personal Web Sharing

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).
This response was from 2006. What is the current method for current Macbooks?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
The Web Sharing is gone from the later versions of OS X, so give MAMP a shot. It will set up Apache, MySQL and PHP for you and get things going..
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top