VirtualHost and localhost error
Posted by: Jose Maria (---.prod-infinitum.com.mx)
Date: October 23, 2020 06:33AM

Hi i have running on windows 10 wampserver 3.2.3 with apache 2.4.46.
- The wampserver tray icon its green.
- This is the result of virtualhost test:
- VirtualHost configuration:

Default server: localhost
Virtual Host: localhost
Virtual Host: api-rest-laravel.com.devel
- This is the port test result:

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

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


Test for TCP
Your port 80 is used by a processus with PID = 12536
The processus of PID 12536 is 'httpd.exe' Session: Services
The service of PID 12536 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct

Test for TCPv6
Your port 80 is used by a processus with PID = 12536
The processus of PID 12536 is 'httpd.exe' Session: Services
The service of PID 12536 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct

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

Your port 80 is actually used by :

Server: Apache/2.4.46 (Win64) PHP/7.3.21


But i get this localhost error:
Undefined offset: 1 in C:\wamp64\scripts\wampserver.lib.php on line 590
Undefined index: Port in C:\wamp64\scripts\wampserver.lib.php on line 700
"Port : used for the VirtualHost is not an Apache Listen port"
"The <VirtualHost number does not match the ServerName number in the file c: /wamp64/bin/apache/apache2.4.46/conf/extra/httpd-vhosts.conf"

How i fix this error?

Options: ReplyQuote
Re: VirtualHost and localhost error
Posted by: RiggsFolly (Moderator)
Date: October 23, 2020 11:56AM

Hi

You get this error -> But i get this localhost error:

When you do what?

---------------------------------------------------------------------------------------------
(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: VirtualHost and localhost error
Posted by: Otomatic (Moderator)
Date: October 23, 2020 01:33PM

Hi,

> How i fix this error?
Your c:/wamp64/bin/apache/apache2.4.46/conf/extra/httpd-vhosts.conf file contains incorrect data. You have incorrectly defined your VirtuaHost and it looks like you are using a listening port other than 80 without having defined it as an additional ListenPort.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.