SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast sugardaddy's Avatar
    Join Date
    Jul 2004
    Location
    salisbury
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Working with WP locally

    what are peoples recommendations for working with WP locally? Which is the best method/download to use?

    Thanks

  2. #2
    SitePoint Addict deadmix's Avatar
    Join Date
    Jun 2009
    Location
    france
    Posts
    205
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Simply because local development refers to the process of building the website without the need to get connected in Internet to run PHP and MySQL or to test your blog pages such contact form...etc Here is an article to learn How To Install Wordpress Locally

    Goodluck

  3. #3
    SitePoint Zealot TexasBob's Avatar
    Join Date
    Jan 2011
    Location
    Fredericksburg, TX
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sugardaddy View Post
    what are peoples recommendations for working with WP locally? Which is the best method/download to use?

    Thanks
    For some things I use native LAMP on an ubuntu box or native mysql and whatever server I'm playing with in rails/django, but for the last couple of months I've just been using XAMPP locally on my machine-- it's pretty easy to get going.

    I usually develop entirely locally, unless it's something super trivial like a WP based marketing site that will be just a couple of template customizations.

    Generally, I will create a fresh install locally, update it, install the plugs I will use and either the bare theme I will be developing or the theme that I will be starting with. When I get to a point where I am ready to show it to the client (assuming that I'm not using git or something), I then do aan export from phpmyadmin locally and then import that and the files into the host, and I just add the constants for the site URL. Then I either work mostly on the remote site or I hand sync the files between my local the the remote... usually it's no big deal to just, say, delete a plugin or theme I'm working on in the remote and and upload my current version, which I find easier than remembering which 5 files I've been working on for the last 4 hours.

    That's the basic gist of what I do. There are some things to watch out for-- like, the paths change between your environments. So I have a shortcode I wrote that basically puts the blogURL wherever I need it. Between that and making sure to never hard code the blogURL in my files, it's not really a problem.

    However, one cool thing that I've been doing off an on is to simply put the final domain name into my hosts file-- that way I can be sure that all the URLS work on the remote without having to take the site live.... and you can do the same thing on your test hosting wihtout taking the site live by pointing the A record for the domain to the hosting.

  4. #4
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sugar,

    John was kind enough to post a link to his shortcode on a similar I had. Find his shortcode here: https://github.com/johnReeve/wp_basi...info_shortcode

  5. #5
    SitePoint Enthusiast sugardaddy's Avatar
    Join Date
    Jul 2004
    Location
    salisbury
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    sorry for the delay in replying. been away. thanks for your reply!!


Bookmarks

Posting Permissions

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