Localhost error
Posted by: paul@ashtonhayespc.co.uk (---.range81-158.btcentralplus.com)
Date: November 03, 2020 01:42PM

Good morning, apologies if this is a really silly question but I have tried all the usual things and the troubleshooting tips in the other relevant areas to no avail.

I have WAMP64 installed on a Windows 10 laptop.

[localhost] works fine and the WAMP dashboard appears

However, if I try to access anything in any subfolder of the www folder I get a "This site can’t be reached localhost refused to connect." error.

Can anyone tell me what I need to do to make it work?

I have a Wordpress install in the subfolder.

Thanks
Paul

Options: ReplyQuote
Re: Localhost error
Posted by: Otomatic (Moderator)
Date: November 03, 2020 02:41PM

Hi,

> I have a Wordpress install in the subfolder.

Local sites must be installed in VirtualHosts, as with all hosting providers.
See:
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost
and
Why to create a VirtualHost BEFORE installing a CMS

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