Virtual Host list goes to "Wampserver Homepage"
Posted by: jPaulB (---.dsl.bell.ca)
Date: March 22, 2015 03:38PM

Hi everybody,

I've just uninstalled and reinstalled wampserver 2.5 (Apache 2.4.9-MySQL 5.6.17-php 5.5.12 32b)
Using Windows Home Premium 64b
The wampserver icon is Green

Followed the three steps to manage the Virtual Host file.

Running icon is green, I have access to MySql, phpmyadmin, everything looks cool.

However, if I pick any one of the projects in "My Projects" and "My Virtual Hosts" I'll open a new instance on the Wampserver Homepage. I'm going crazy trying to find an error in the "httpd-vhosts.conf" file

<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride ALL
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/addressbook"
ServerName addressbook
<Directory "c:/wamp/www/addressbook">
AllowOverride ALL
Require local
</Directory>
</VirtualHost>


Can someone please suggest where I'm going wrong with the above?

Many thanks

jPaul

Many Thanks,
Paul

(If I wasn't so stupid, I wouldn't have to be so persistent)



Edited 2 time(s). Last edit at 03/22/2015 03:42PM by jPaulB.

Options: ReplyQuote
Re: Virtual Host list goes to "Wampserver Homepage"
Posted by: RiggsFolly (---.as43234.net)
Date: March 23, 2015 11:44AM

Hello Paul,

Have you setup your HOST file to contain these domainnames?


edit c:\windows\system32\drivers\etc\hosts

It should contain these entries in your case

127.0.0.1  localhost
::1  localhost

127.0.0.1  addressbook
::1  addressbook



HOW TO EDIT THE HOSTS FILE
The hosts file is protected by windows, in order to save it you must have Administrator privilages.
Vista/W7/W8 you may think you are an Administrator BUT YOU ARE NOT.

To successfully save the hosts file do this to launch your editor with Admin Privilages.

Locate your editors icon on the desktop or from the Start menus ( notepad will do if you have nothing else )
right click + shift over your chosen editor icon - will show a menu.
select "Run As Administrator" from the menu.
Navigate your editor to the c:\windows\system32\drivers\etc\hosts file.

When you have made changes you will now be allowed to save them.

---------------------------------------------------------------------------------------------
(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: Virtual Host list goes to "Wampserver Homepage"
Posted by: jPaulB (---.dsl.bell.ca)
Date: March 23, 2015 04:07PM

Thanks RiggsFolly, for taking time to answer my question.

I should have included that information with the first edit that I had made.

Yes, I have modified the right hosts file.

Same behaviour as before.

I can properly access mySql and phpmyadmin, but if I select any of the folders in the "My Projects" menu I'll open a new browser tab displaying the Wampserver Homepage.

(And the kicker is that the address bar will display "[addressbook"];

Thanks for the thought though,

Paul

Options: ReplyQuote
Re: Virtual Host list goes to "Wampserver Homepage"
Posted by: RiggsFolly (---.as43234.net)
Date: March 23, 2015 05:06PM

OK so you need to read this [forum.wampserver.com]

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


Sorry, only registered users may post in this forum.