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.2.0 32bit & 64bit)
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.19>

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.4 32 bit - Apache 2.4.46a - PHP 8.0.0…5.6.40 - MySQL 5.7.32 - MariaDB 10.5.8
Wampserver 3.2.4 64 bit - Apache 2.4.46a - PHP 8.0.0…5.6.40 - MySQL 5.7.32/8.0.22 - MariaDB 10.5.8
PhPMyadmin 5.0.4 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.