Successful migration - just a few questions?
Posted by: giori (---.fix.access.vtx.ch)
Date: October 23, 2014 08:31PM

Operating system? Win7 Ultimate SP1 64bit
Wamp Server installed? - 2.5 32bit
Apache you are running? 2.4.9
MySQL you are running? 5.6.12
PHP you are running? 5.5.12
WampManager icon color? Green
HOSTS file?
127.0.0.1 localhost
::1 localhost
127.0.0.1 crystal sahara daytona
::1 crystal sahara daytona
Virtual Hosts?
<VirtualHost *:80>
DocumentRoot "D:/wamp/www"
ServerName localhost
ServerAlias kira
<Directory "D:/wamp/www">
AllowOverride All
Require local
Require ip 192.168.100
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/crystal"
ServerName crystal
</VirtualHost>
...

I successfully migrated all my projects from WS 2.4 (no virtual hosts) to 2.5 and created virtual host according to forum tutorial. So far so good. Everything works.

Just a few easy questions and one suggestion:

1.) I don't see any difference between the menu folders "My Projects" and "My Virtual Hosts". They both start the project homepage. No difference. Is this what they are supposed to do? I would expect that the menu "MyProjects" would open the appropriate project folder! Otherwise it does not make sense to have two menu items for just the same.

2.) Is it correct that we don't see any column "My Virtual Hosts" in the localhost start page?

3.) I have an inhouse network with 3 pc's. One is the dev-pc, the others are older ones with smaller screens just for testing, so in WS 2.4 I modified httpd.conf (Require ip 192.168.100), so that I could reach the web-server on dev-pc from the other two pc's. This still works in WS 2.5 by entering e.g. kira/crystal, but if I try to enter the virtual host name 'crystal' alone in the browser address field, the requested virtual host name cannot be resolved. Do I need a DNS server for that or is there a simpler way to do it?
4.) As httpd-vhosts.conf is being edited quite often, it would be nice to have this integrated in the Apache menu just below httpd.conf.

Thanks fot helping.

Options: ReplyQuote
Re: Successful migration - just a few questions?
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: October 23, 2014 09:50PM

Answer 1. If you had placed your Virtual Host projects in a seperated folder lets say C:\websrc\.... then they would not show on the MyProjects menu but would show on the MyVirtual Hosts menu.


Answer 2. You can add the My Virtuall Hosts menu to your WAMPServer homepage if you like
See this post and search for WAMPVHOSTSUBMENU [forum.wampserver.com]


Answer 3. If you want you can add your own.

Make a backup of \wamp\wampmanager.tpl
Edit the \wamp\wampmanager.tpl
Locate this line
Type: item; Caption: "httpd.conf"; Glyph: 6; Action: run; FileName: "${c_editor}"; parameters:"${c_apacheConfFile}"

And add this line after it.
Type: item; Caption: "httpd-vhost.conf"; Glyph: 6; Action: run; FileName: "${c_editor}"; parameters:"${c_apacheConfFile}/extra/vhost-httpd.conf"

Save the file, and then do RightClick wampmanager.exe -> Refresh

Check your Apache menu ... and voila you have your menu item



Answer 3. You can use a DNS Server or just change the HOSTS file on each of the other PC's like so
192.168.100.111 project1.dev where 192.168.100.111 is the PC running WAMPServer

Answer 4.

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