Pages: Previous12
Current Page: 2 of 2
Re: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 06, 2017 02:47PM

Also forgot to add to previous message.


***** Test which uses port 80 *****

===== Tested by command netstat filtered on port 80 =====


Test for TCP
Port 80 is not found associated with TCP protocol
Port 80 is not found associated with TCP protocol

===== Tested by attempting to open a socket on port 80 =====

Your port 80 is not actually used.

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 06, 2017 02:58PM

Also as an extra to my two previous messages I have just found in httpd-vhosts.conf

<VirtualHost *:7777>
ServerName localhost
DocumentRoot C:/wamp/www
<Directory "C:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Does this cause me the problem??

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: RiggsFolly (Moderator)
Date: July 06, 2017 03:24PM

Well I would definitely consider putting you site in here as a Virtual Host if you want to be able to get to it

---------------------------------------------------------------------------------------------
(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: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 06, 2017 10:04PM

Just done that. It makes no difference.

Besides in the past I have never put anything in httpd-vhosts.conf it has always been put in httpd.conf

I have powered down my old computer, so nothing should be available from there.

In trying to access www.fruitnuttrees.co.uk on Firefox on my new server, it waits then times out. Which means for some reason it is trying to access my old server which is switched off.

Sure enough reboot my old server, and www.fruitnuttrees.co.uk on Firefox on my new server, and it comes up with start page on my old server.

I am now pulling my hair out. This should not happen ?

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: RiggsFolly (Moderator)
Date: July 07, 2017 09:54AM

Have you added this new domain to your hosts file?

127.0.0.1 fruitnuttrees.co.uk
::1 fruitnuttrees.co.uk

---------------------------------------------------------------------------------------------
(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: How to run 2 versions of WAMP
Posted by: Otomatic (Moderator)
Date: July 07, 2017 06:11PM

Hi,

IPv4 address for fruitnuttrees.co.uk: 82.10.18.252
IPv4 address for www.fruitnuttrees.co.uk: 82.10.18.252

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.9/7.0.23/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.9/7.0.23/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: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 07, 2017 11:16PM

Hi Riggsfolly

When you say "Have you added this new domain to your hosts file?"

Sorry for my ignorance, but is the Windows 10 c:\Windows\System32\Drivers\etc\hosts



Edited 1 time(s). Last edit at 07/08/2017 01:22AM by gray_b.

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: RiggsFolly (Moderator)
Date: July 08, 2017 09:56PM

Yes

---------------------------------------------------------------------------------------------
(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: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 11, 2017 10:59AM

Hi- I have put new domain into hosts file. But it will not accept fruitnuttrees.co.uk only www.fruitnuttrees.co.uk

I have also changed port from 7777 to 8080, but this does not change anything.

VirtualHost configuration:

Default server: localhost
On port 8080 Virtual Host: localhost
On port 8080 Virtual Host: www.fruitnuttrees.co.uk


Still no luck in getting it running.

I can get the following to work.
[localhost]
[localhost] (this is the admin of ecommerce prestashop)

The following does not work

localhost:8080/prestashopv1.7.1/
this resolves itself to
[www.fruitnuttrees.co.uk]
and then does not work

Also www.fruitnuttrees.co.uk still brings up the start page on my old computer server.

Any ideas

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: RiggsFolly (Moderator)
Date: July 11, 2017 01:43PM

Maybe it would help if you showed us you httpd-vhosts.conf file

---------------------------------------------------------------------------------------------
(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: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 11, 2017 05:48PM

Dump of httpd-vhosts.conf

<VirtualHost *:8080>
	ServerName localhost
	DocumentRoot c:/wamp64/www
	<Directory  "c:/wamp64/www/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
#
<VirtualHost *:8080>
		ServerAdmin gvbale@balesfield.co.uk
    ServerName www.fruitnuttrees.co.uk
    ServerAlias fruitnuttrees.co.uk
    DocumentRoot C:/wamp64/www/
    ErrorLog logs/fruitnuttrees.co.uk-error.log
    CustomLog logs/fruitnuttrees.co.uk-access.log common 
    <Directory "c:/wamp64/www/"> 
      AllowOverride All
	Order allow,deny
	Allow from all 
   </Directory>
</VirtualHost>



Edited 1 time(s). Last edit at 07/11/2017 06:30PM by RiggsFolly.

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: RiggsFolly (Moderator)
Date: July 11, 2017 06:31PM

Change these 2 values as follows


ServerName fruitnuttrees.co.uk
ServerAlias www.fruitnuttrees.co.uk

Just a small reminder: WAMPServer is created as a developer tool and a learning environment.

The idea is that you install it, and it provides you with an environment to play with and learn on

It was never the idea of this forum to provide Noob to Expert training.

---------------------------------------------------------------------------------------------
(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 -?-?-?-



Edited 2 time(s). Last edit at 07/11/2017 06:34PM by RiggsFolly.

Options: ReplyQuote
Re: How to run 2 versions of WAMP
Posted by: gray_b (---.3-2.cable.virginm.net)
Date: July 12, 2017 04:04PM

Changing servername and serveralias has no effect.

Besides, I believe its Apache convention to have

ServerName www.example.com
ServerAlias example.com



Just a small reminder: If you do not ask questions you will never learn to become an expert, and Its no good having the knowledge and not sharing it.

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


Sorry, only registered users may post in this forum.