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 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

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.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.