Local Installation of WP Multisite
-
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: https://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’: https://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 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 localhost
127.0.0.1 pbn.dev pbn-asheville.devand the following ‘httpd.conf’ Virtual Hosts section text reads:
NameVirtualHost *:8888
Include /Applications/MAMP/conf/apache/vhosts.confAnd 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 [email protected]
# DocumentRoot “/www/docs/dummy-host.example.com”
# ServerName dummy-host.example.com
# ServerAlias https://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>
#
# <VirtualHost *:8888>
# ServerAdmin [email protected]
# 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”
# </VirtualHost>
#<VirtualHost *:8888>
ServerName localhost
DocumentRoot /Applications/MAMP/htdocs/PBN/
<Directory /Applications/MAMP/htdocs/PBN/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>—————————-(my separation line)——–
My problems:
1) I can login via my browser by using: https://pbn-asheville.dev:8888/ or https://pbn.dev:8000 – however, any links I click end up going to a page that reads:
Not Found
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 88882) I’m under the impression that I should be able to login using simply https://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 “https://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.
- The topic ‘Local Installation of WP Multisite’ is closed to new replies.