How To Install Wordpress?

How do I tell set up a local WordPress install with public URL?

  • Can I use /Sites/ in OSX to develop WordPress, and possibly share staging URLs with the outside world? In the past - I have used XAMPP to develop on a single WordPress install in the XAMPP/htdocs/ folder. This was mainly to test HTML/CSS stuff preliminarily before eventually developing on a public staging server. Going forward - I would like to start a new WP install for every new client project, each with its own database and temporary URL which can be public to the client, before pushing to a live server via WP Migrate Pro. Is this possible? Thanks!

  • Answer:

    Sure, it's possible. I do all my development in a local MAMP environment and (when necessary) point a beta subdomain at my static IP so the client can view/test before going live. You need to http://foundationphp.com/tutorials/vhosts_mamp.php and add the A records to the DNS record, but beyond that should be just what you're used to doing with XAMP. If you don't have a static IP, you could explore dynamic DNS solutions, but, speaking from experience, that ends up being quite a pain. The best approach there would be to subscribe to a service that let's you https://www.google.com/#q=wildcard+dynamic+dns the subdomain so you could set-up vhosts like client.domainname.com.

critzer at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

Yes, this is possible, although you'll need to know your public IP, understand that it might change often, and probably also use a non-standard port for the web server, as port 80 outgoing is often blocked by the internet service providers. To me, it sounds like more trouble than it's worth, and I'd just put it on the live server, but password protect it, or limit it via visitor IP.

destructive cactus

Thanks guys. In terms of viewing the URL in /Sites/ locally, what is the shorter version of that? Right now it looks like file:///Users/critzer/Sites/myclient/index.html Is that something I need to set in the hosts file?

critzer

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.