Results 1 to 8 of 8
  1. #1


    Member Since
    Jan 30, 2006
    Posts
    27
    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.

  2. #2
    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).

  3. #3


    Member Since
    Jan 30, 2006
    Posts
    27
    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

  4. #4


    Member Since
    Dec 11, 2004
    Location
    Vancouver
    Posts
    128
    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>

  5. #5


    Member Since
    Sep 30, 2004
    Posts
    3,378
    /Library/Webserver/Documents/ is the location of the root web directory.

  6. #6

    ekologik's Avatar
    Member Since
    Dec 03, 2007
    Location
    Canada
    Posts
    74
    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.
    MacBook
    iPhone 3Gs

  7. #7


    Member Since
    Jun 25, 2013
    Posts
    9
    Personal Web Sharing
    Quote Originally Posted by antizero View Post
    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?

  8. #8

    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,612
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 6S, iPod Nano 7th GeniPad 3
    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..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Localhost mail server on Mac OS 10.6.8
    By StateRd84 in forum Web Design and Hosting
    Replies: 0
    Last Post: 06-07-2012, 10:20 AM
  2. HELP!!! Lost all setting on Apple Mac. Gone back to original setting!!!!!
    By HappySad99 in forum OS X - Operating System
    Replies: 9
    Last Post: 02-24-2011, 01:16 PM
  3. localhost?
    By ChronixPsyc in forum Web Design and Hosting
    Replies: 3
    Last Post: 01-13-2011, 03:59 AM
  4. localhost forbidden, localhost/~username allowed
    By Jarvis in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-18-2010, 08:04 PM
  5. Renaming your Mac for the router and localhost
    By adt01 in forum OS X - Operating System
    Replies: 2
    Last Post: 02-04-2009, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •