multiple virtual hosts ... wordpress ?
Posted by: ProPokerUK (---.15-3.cable.virginm.net)
Date: October 09, 2017 10:08PM

Hi

I am a complete beginner with regards to WordPress and WampServer.


Have WampServer (Wamp64) on my PC for developing and testing sites.


How do I install WordPress to run in Wamp64 with mutiple virtual (named) hosts ?



cheers



Edited 1 time(s). Last edit at 10/09/2017 10:12PM by ProPokerUK.

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: RiggsFolly (Moderator)
Date: October 10, 2017 12:02AM

Hi

Start by reading the post above yours. Its a sticky post called THE NEED for VIRTUAL HOSTS

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: ProPokerUK (---.15-3.cable.virginm.net)
Date: October 10, 2017 01:12PM

Hi

Ok, Virtual (name-based) Hosts seems the way for me to go with.

Still a bit unsure about WordPress installation.

With "c://wamp64/localhost" setup, WP was installed (with a database) under the wamp64 folder, then the files in the zipped "Wordpress" file were added to the website under "www" (localhost).

Is it done the same way with the virtual hosts setup ?
What would the folder structure look like below wamp64 ?

cheers

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: Otomatic (Moderator)
Date: October 10, 2017 01:54PM

Hi,

You MUST create VirtualHost BEFORE Wordpress installation.

NEVER put files directly into wamp/www/ folder. Create a folder wamp/www/my_folder/ to put files into.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: ProPokerUK (---.15-3.cable.virginm.net)
Date: October 10, 2017 02:41PM

Hi

Sorry, but are you saying that it will need a new and complete WP installation for each host ?


cheers

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: Otomatic (Moderator)
Date: October 10, 2017 02:55PM

Hi,

> but are you saying that it will need a new and complete WP installation for each host ?
YES

Each installation has a different ServerName, so a different url and, as Wordpress stores in its url settings, you must perform a new installation for each new url.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: ProPokerUK (---.15-3.cable.virginm.net)
Date: October 10, 2017 08:34PM

Hi

A better understanding of the setup now.

Is it easy to create backups of the development hosts ?
Eg: after each stage of development/testing/release

Will the DB remain there, or would it have to be re-created ?
Eg: to free up a host named "testing" to develop another WP site or theme ?


Any links to web pages that set out "Best Practises" ?


cheers

Options: ReplyQuote
Re: multiple virtual hosts ... wordpress ?
Posted by: Otomatic (Moderator)
Date: October 10, 2017 09:29PM

Hi,

> Will the DB remain there, or would it have to be re-created ?
You can not use the same database for two (or more) Wordpress sites.
Indeed, Wordpress writes several information about the site, including the url, in the configuration table.


> Any links to web pages that set out "Best Practises" ?
I have no links! See with Codex Wordpress for Wordpress.
For Apahce, PHP or MySQL, see the related documentation.

> Is it easy to create backups of the development hosts ?
For databases -> Export into SQL file by PhpMyAdmin or Adminer
For the site itself, backup of the folder.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.