At Andrea's request, I'm starting a new thread on this seemly complex (yet simple) issue of trying to setup a local development workflow.
Background: I have a site that is currently live: http://jobs.localjobs.com
It was setup using multisite....subdomain setup.
I wanted to be able to work on WordPress locally - and utilize Dreamweaver CS5 as an authoring tool as it has some rather nifty new features that make working with PHP, CSS and other file formats real easy for a newbie like myself.
So, in thinking that i needed to emulate the kind of environment I wanted to have ultimately LIVE (multisite w/subdomains) - I needed to set that up locally as well. I may be wrong here based on Andrea's last post in another thread.
So - first question. Is this accurate? Do I need to setup a subdomain version locally in order to ultimately publish that same site to a web server for public viewing. If not, then I'm sure I can easily setup the subfolder approach...as that is pretty straight forward.
Heres the tricky part....after reading an older thread on this same subject....it sounded like I needed to make some modifications to a few files on my local machine in order to be able to add new sites to a network install of WP. So, here's where I"m at:
Here's my configuration: I'm on a MAC, using MAMP.
A few background setup items of note:
1. My local WP site is NOT yet in 'multisite' mode - still in standard WP install mode (latest version 3.0.1) as I didn't know whether to choose 'subdomain' and just ad virtual hosts (which is what I tried to prep for as noted below), or 'subfolders' approach.
2. I've updated my 'hosts', 'httpd.conf' and 'vhosts.conf' files....pretty much exactly as outlined in this article on 'How to setup a virtual hosts in the Mamp environment': http://danilo.ariadoss.com/how-to-setup-virtual-hosts-mamp-environment/
3. I'm using the following 'hosts' file settings:
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
127.0.0.1 pbn.dev pbn-asheville.dev
and the following 'httpd.conf' Virtual Hosts section text reads:
And the following 'vhosts.conf' section:
# Virtual Hosts
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
# <VirtualHost *:8888>
# ServerAdmin firstname.lastname@example.org
# DocumentRoot "/www/docs/dummy-host.example.com"
# ServerName dummy-host.example.com
# ServerAlias http://www.dummy-host.example.com
# ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
# CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log common"
# <VirtualHost *:8888>
# ServerAdmin email@example.com
# DocumentRoot "/www/docs/dummy-host2.example.com"
# ServerName dummy-host2.example.com
# ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
# CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log common"
Options Indexes FollowSymLinks MultiViews
allow from all
----------------------------(my separation line)--------
The requested URL /PBN/ was not found on this server.
Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 8888
2) I'm under the impression that I should be able to login using simply http://pbn.dev -- in other words, without having to use port number at the end. However, when I try this I just get the following error:
Safari can’t open the page “http://pbn.dev/” because Safari can’t connect to the server “pbn.dev”.
Please advise what I'm doing wrong here. Am I almost there. Do I need to start over. Or, ......???? Looking forward to some REAL direction here. Thanks.