Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 18, 2016 10:08AM

Hello. I just installed the official release of WS3 and I ran across an issue after following the virtual hosts tutorial. I setup everything to the best of my knowledge but when I visit my projects page I get a 404 not found *The requested URL / was not found on this server*. I downloaded the beta version of WS3 on windows 10 and the tutorial worked for me then. However I am now on windows 8 and I cant get it working. Inside my httpd-vhosts.conf I have the following:

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName projects
DocumentRoot c:/wamp64/www/projects
<Directory "c:/wamp64/www/projects/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>

Can anyone help?

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: FakE (---.dynamic.kabel-deutschland.de)
Date: February 18, 2016 11:23AM

Well you need to add the "url" project in your Windows host file to use it localy as domain.

But there is an other way for you:

Just rename ServerName projects to ServerName projects.localhost

It should be found now localy in your browser without editing Windows hosts.


Or take a look here: [forum.wampserver.com]



Edited 2 time(s). Last edit at 02/18/2016 11:24AM by FakE.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 18, 2016 06:27PM

I've tried both methods and neither of them work. I even made sure httpd.conf was setup right. My hosts has:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 projects
::1 localhost
::1 projects

And even after changing projects to projects.localhost I still get a 404 not found.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: RiggsFolly (Moderator)
Date: February 18, 2016 07:16PM

the suggestion about changing `projects` to `projects.localhost` was wrong and unnecessary.


The virtual hosts you have defined below look just fine

I personally alwasy wrap my Directory and DocumentRoot folder names in quotes, but I am not sure its absolutely necessary

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

<VirtualHost *:80>
   ServerName projects
   DocumentRoot "c:/wamp64/www/projects"
   <Directory "c:/wamp64/www/projects/">
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Require local
   </Directory>
</VirtualHost>

The hosts file should contain

127.0.0.1  localhost
127.0.0.1  projects

::1  localhost
::1  projects

There should be no difference running WAMPServer on W10 or W7, W8 or W8.1



Would you mind answering all these questions so we know exactly what you are using [forum.wampserver.com]


Also it would be a good idea to read through these Troubleshooting Tips [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-



Edited 2 time(s). Last edit at 02/18/2016 07:33PM by RiggsFolly.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 20, 2016 07:54AM

Understandable. I recently updated to Windows 10 a day so thats the only change.

1: I am using Windows 10, 64 Bit version.
2: I am using Wampserver 3, 64 Bit version with PHP 7.
3: My apache version is 2.4.17.
4: My PHP version is 5.6.17.
5: My Mysql version is 5.7.9.
6: The wamp icon is green and it seems like all services are running correctly.
7: These are the only active lines in my hosts file:

127.0.0.1 localhost
127.0.0.1 projects
::1 localhost
::1 projects

8: Yes I do have access to localhost.
9: Yes I can access phpmyadmin.
11: My antivirus is Eset Nod32, however I had Wamp installed before I installed Eset and Wamp still didnt work correctly.
12: Wamp is located at "C:\wamp64" without quotes.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: RiggsFolly (Moderator)
Date: February 20, 2016 12:57PM

Did you check that you had all the MSVC Runtime libraries installed for BOTH 32bit and 64bit.

That is point 20 on the Troubleshooting Tip post. W10 does not come with these older versions installed by default for some reason.

If you did not, then I would uninstall WAMPServer ( make backup of httpd-vhosts.conf and any databases )

Install any missing MSVC Libraries carefully

Reinstall WAMPServer.

Watch for a message from NOD when you frist start WAMPServer, asking if it is allowed access through the firewall and say yes to that

---------------------------------------------------------------------------------------------
(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: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 21, 2016 05:59AM

Yes I believe I have them all.

[i.imgur.com]


Edit: Actually I notice the icons are abit different. I will unstall wamp, install the libraries and try again.



Edited 1 time(s). Last edit at 02/21/2016 06:01AM by Espadon.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 22, 2016 08:36AM

Ok I checked everything and even after removing wamp, reinstalling the libraries and then wamp 3 again, the problem still exists. Is there no other way to fix this?

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: RiggsFolly (Moderator)
Date: February 22, 2016 08:54AM

Ok have you got round to looking at the windows event viewer for messages from Apache and or MySQL

---------------------------------------------------------------------------------------------
(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: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 23, 2016 07:30PM

I just checked and I don't see anything regarding them. The only errors I saw between Application and System were:

Bonjour Service and DIstributedCOM

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: RiggsFolly (Moderator)
Date: February 24, 2016 01:52AM

Well like you said to start with you had this working once, so it must be something you did wrong

Also in WAMPSeerver 3 you can create Virtual Hosts using the menus see the second post on this thread [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
Re: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 29, 2016 02:41AM

I've tried the menus, even tried reinstalling the redistributes numerous times. I just don't know why its not working. One thing I can say is when I downloaded it before it was the beta version on sourceforge before the official site released it. Idk which version that is now because there are so many W3 versions on there. Also it should be noted that the version I had didn't say wamp64 in my root, it just said wamp. Maybe someone can teamview, skype, ect?


EDIT: Ok disregard what I said, my website works fine BUT ONLY when I visit: [project]

Previously when I clicked [project] it led me to a 404 Not Found which is why I said I had problems. In the previous versions of Wamp when I visit [project] it listed all the files/directories which is how I want it to be, but now when I visit it its just a 404 Not Found. So to change the question im asking, how would I enable it so when I visit [project] it lists all of my folders? I.E

[project]
> directory 1
> directory 2
> directory 2.1



Edited 1 time(s). Last edit at 02/29/2016 06:15AM by Espadon.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: Otomatic (Moderator)
Date: February 29, 2016 09:29AM

Hi,

> I downloaded it before it was the beta version on sourceforge before the official site released it.

There was never any alpha or beta release of Wampserver 3.

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

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: Espadon (---.cpe.imoncommunications.net)
Date: February 29, 2016 06:28PM

Hey, idk what its called then but at that time I had visited [www.wampserver.com]. The only releases they had then were 2.5 for 32 and 64, there was no WS 3. However when I visited sourceforge for wamps official page it had wampserver 3 and thats the one I downloaded, and it worked on my PC for Windows 8.1/10.

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: StickyNote (---.hsd1.in.comcast.net)
Date: March 01, 2016 06:35PM

I am having the same issue. I have tried everything suggested here from Troubleshooting to WAMPServer 3 All you need to know. I still cannot access files through Wampserver.exe. HTML file open fine if I access them directly through folder (C/wamp64/www/folder/file).
I have windows 7 64
Although what I noticed while I was working through [forum.wampserver.com], most of the corrections were already there. I did not had to work a lot. But anyway it solve the problem for me.
No matter I use chrome/IE I get this error
"Not Found

The requested URL / was not found on this server.

Apache/2.4.17 (Win64) PHP/5.6.16 Server at test Port 80"
and file in address bar appears as [test]

Options: ReplyQuote
Re: Website doesn't show after creating virtual hosts
Posted by: RiggsFolly (Moderator)
Date: March 01, 2016 07:14PM

Hi Sticky

Can you start your own thread please.

Begin by answering these questions [forum.wampserver.com] in your new post.

Please do not really on similiar issues, please state your specific issues

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