Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Wampserver Homepage Shows Error "Port used for the VirtualHost is not an Apache Listen port" ... (2 replies)

$
0
0
Hi, I'm attempting to create two virtual hosts test.com and demo.com, and achieve the goal:

1). test.com, www.test.com, and localhost:8010 all directs to C:/Wamp/www/test/
2). demo.com, www.demo.com, and localhost:8020 all directs to C:/Wamp/www/demo/
And yes, they are working as expected when tested in browsers.

My questions is why in the bottom of WAMPSERVER Hompage, it still shows me following errors:
YOUR VIRTUALHOST
localhost - Not a Listen port
test.com - Not a Listen port
test.com:8010 - Not a Listen port
demo.com:80 *:8020 - Not a Listen port
Error(s) See below
Port used for the VirtualHost is not an Apache Listen port
Port number for <VirtualHost *:port> has not correct value or is not the same in file C:/Wamp/bin/apache/apache2.4.37/conf/extra/httpd-vhosts.conf

Below are my answers to READ-BEFORE-ASK:
1 - Windows version used - Win10 1809 64Bit with the latest patches;
2 - Version WampServer - 3.1.7 64Bit
3 - Apache Version - 2.4.37
4 - PHP Version - 7.1.26
5 - MySQL Version - 5.7.24
5a - MariaDB version if applicable -10.3.12
6 - What color is the WampServer icon - Green
7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?
127.0.0.1 localhost
::1 localhost
127.0.0.1 test.com
127.0.0.1 www.test.com
127.0.0.1 demo.com
127.0.0.1 www.demo.com
8 - Do you have access to localhost (Homepage WampServer)? - Yes
8a - If so, is there an error message at the bottom of the page? - Yes, errors shown are as said above
9 - Do you have access to phpMyAdmin? - Yes
10 - If you refer to an error message, please include the EXACT wording of the error in your post - Yes, errors shown are as said above
11 - If you use an Antivirus and / or Firewall, please include the names of these - Having tried to close all firewalls/antivirus when start, errors still show;
12 - What is the full path to the installation of WampServer (eg D:\wamp\) - C:\Wamp
13 - If you have one or more Virtual Hosts defined, please show their definition(s)
Listen 80
Listen 8010
Listen 8020

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/Wamp/www"
<Directory "C:/Wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
#Require local
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName test.com
ServerAlias www.test.com
DocumentRoot "C:/Wamp/www/test"
<Directory "C:/Wamp/www/test/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:8010>
ServerName test.com
ServerAlias www.test.com
DocumentRoot "C:/Wamp/www/test"
<Directory "C:/Wamp/www/test/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80 *:8020>
ServerName demo.com
ServerAlias www.demo.com
DocumentRoot "C:/Wamp/www/demo"
<Directory "C:/Wamp/www/demo/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Additional info might help:
14 - Window Key+R=>CMD>netstat -aon|findstr "80" => PID LISTEING 7912
CMD>tasklist|findstr "2720" => httpd.exe 7912 Services 0 21,152 K
The same goes with port 8010, 8020
15 - Any other versions of Wampserver installed ? - No
16 - XAMPP installed ? - No
17 - Windows IIS Enabled ? - No
18 - Skype (App) Installed - No
19 - All Visual C++ Packages required installed ? - Yes, I have downloaded and installed all packages(Both X86 && X64) from [wampserver.aviatechno.net], the tool Checks VC++ packages installed also shows: All packages are installed corretly ...
20 - Have searched similar problem in forum.wampserver.com, ServerFault, StackOverFlow, etc ? - Yes, but haven't found a solution yet;

Thanks for your attention and analysis, further info will be replied per request :)

Best Regards, Mike

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>