1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress + Mac Users!

Discussion in 'BlackHat Lounge' started by SpellZ, May 5, 2009.

  1. SpellZ

    SpellZ Regular Member

    Joined:
    Feb 8, 2009
    Messages:
    357
    Likes Received:
    312
    Location:
    Toronto, ON
    Before putting up my WordPress theme/site onto the actual site, I want to run it locally to make sure that everything is smooth and everything works

    Now I found this tutorial...

    http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP

    And I'm wondering if anyone can confirm this and tell me if its any good or not? Seems a lot of work, and it'll be a shame if I spend a couple of hours and end up with nothing:D
     
  2. SpellZ

    SpellZ Regular Member

    Joined:
    Feb 8, 2009
    Messages:
    357
    Likes Received:
    312
    Location:
    Toronto, ON
    No? No one can confirm this?
     
  3. yeti_racer

    yeti_racer Junior Member Premium Member

    Joined:
    Dec 3, 2008
    Messages:
    192
    Likes Received:
    87
    Location:
    Hick Ville
    Seems like it would work. All you're doing is installing a web/database server on your MAC. Having a local development environment is nice, but I would think you could just FTP the theme up to your host faster than setting all that up. If you only have 1 domain, you can just install it in a directory; ie mysite.com/testsite That's what I normally do.
     
  4. steveinsg

    steveinsg Newbie

    Joined:
    Aug 5, 2008
    Messages:
    47
    Likes Received:
    19
    I think it would be quicker, and less hassle to just get another cheapo hosting account for $10 a month, and try it on there.... Cancel after one month if necessary.

    $10 - Or maybe 3-4 hrs of you pissing around, trying to set everything up.
     
  5. BlackMelvyn

    BlackMelvyn Regular Member

    Joined:
    Jul 8, 2008
    Messages:
    202
    Likes Received:
    272
    Home Page:
    It would take you minutes to set up all this.
    I did that on mine to be able to choose among my hundreds of WP themes.
    Actually, I did not install MAMP, but just added Mysql and PHP seperately and it took like 10 minutes.

    It works like a charm.

    If you're not sure whether you should do that, just use a remote host as suggested above
     
  6. biffbangpow

    biffbangpow Newbie

    Joined:
    Apr 18, 2009
    Messages:
    13
    Likes Received:
    8
    Yeah, the MAMP option would work, and may be easier in some respects as it includes everything in a self-contained package. MAMP also gives you easy options to choose/switch between PHP 4 & 5, and Apache 1.x & 2.x if you want/need to.

    However, all OSX Macs come with Apache (web server) and PHP pre-installed, but disabled. Just enable Personal Web Sharing in System Preferences/Sharing/Services to start up Apache, and you need to uncomment a couple of lines in the Apache httpd.conf file to enable PHP. You'll then be able to access .html and .php files through your web browser using localhost as the server name.

    The default file path for the main system wide web root folder (where you want to put your html/php files) is: /System/Library/WebServer/Documents/

    Access html/php files there through your browser using: hxxp://localhost/ - will default to look for index.html (or .php) in the folder path above.

    Each user account on your Mac will have it's own, more private web root folder too - the Sites folder in the users Home folder. The path to that is: /Users/USERNAME/Sites/

    Access html/php files there through your browser using: hxxp://localhost/~USERNAME/

    You can add any files or sub-folders under either of those web root folders and access them through your web browser just like any other web server e.g. for Wordpress or other PHP applications. Effectively you have your own web server with this set up (or with MAMP) and are the System Admin with full access to everything.

    For databases, MySQL is not included as standard with Mac OSX, but you can download installable binaries (.dmg package) from the MySQL site. Installation is pretty simple, but it may take some fiddling about to get it all working.

    MySQL is included in the MAMP package, so that may be the easier option if you've never done this before, or if you don't want to risk screwing anything up. The web root folder will be different from those above with MAMP too.

    I've got a development environment with the default Apache and PHP plus MySQL running on my Mac and it works great. Have Wordpress installed too for messing about with templates and plugins.

    As others have said, if that all sounds too much, just use a remotely hosted spare domain or sub-folder for testing Wordpress or stuff.
     
    • Thanks Thanks x 1
  7. SpellZ

    SpellZ Regular Member

    Joined:
    Feb 8, 2009
    Messages:
    357
    Likes Received:
    312
    Location:
    Toronto, ON
    Wow guys, thank you so much for the help!
    biffbangpow, especially! [gave you a thanks man!]

    From what I understand that one of the MAIN reasons to use MAMP is if you have a lot of themes to test on, and you don't know which one to pick, or if you have a lot of add-ons to the theme and you want to add them locally first to make sure they all work.


    I think what I will do is make a
    www.example.com/testing_site, and put the theme in there, then when I will find out that it works, I will put it into www.example.com, because really.. all I will be doing is testing one or two themes, THE MOST! Maybe even one theme, if the first one works as its planned to

    Might be a lot faster, and a lot easier!

    Wow! Once again, thank you so much guys!
     
  8. biffbangpow

    biffbangpow Newbie

    Joined:
    Apr 18, 2009
    Messages:
    13
    Likes Received:
    8
    That's the idea if that's what you want to do.

    I'd say the greatest advantage of having a local MAMP setup (whether actually using the MAMP package or the default OSX versions) is that you have a complete Apache/PHP/MySQL web development environment on your own computer, and you can do all your development and testing locally before uploading to a server - no need for an internet connection either.

    So testing Wordpress themes and plugins is certainly something you can do with all that.

    Hope it all goes well.

    Thanks for the thanks. :)