522 "This page isn't working" error
Posted by: skipper (---.dsl.in-addr.zen.co.uk)
Date: June 26, 2025 05:15PM

1 - Windows version - Windows 11 Pro version 24H2 build 26100.4484 (64 bit)
2 - Wampserver version - 3.3.7 - 64 bit
3 - Apache version - 2.4.62.1
4 - PHP version - 8.3.14
5 - MySQL version - 9.1.0 (removed)
5a - MariaDB version 11.5.2
6 - Wampserver icon is Green

7 - c:\Windows\System32\drivers\etc\hosts active lines:
127.0.0.1 localhost
::1 localhost

127.0.0.1 cornwalltaichi.co.uk
::1 cornwalltaichi.co.uk

8 - Access to localhost WAMP server homepage: yes
8a - Error message at bottom of page -
phpmyadmin 5.2.1 Not compatible with PHP 8.3.14

9 - Access to phpMyAdmin: yes

10 - Current error message if I log in from the server with Chrome browser using [cornwalltaichi.co.uk] as the URL:

This page isn't working
If the problem continues contact the site owner.
HTTP ERROR 522
Reload

11 - Windows 11 firewall



Edited 9 time(s). Last edit at 06/30/2025 07:08PM by skipper.

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: Castspeller (---.hsd1.ca.comcast.net)
Date: June 26, 2025 05:33PM

Most likely your firewall is blocking the site "Server at www.cornwalltaichi.co.uk Port 443". Try to disable the firewall briefly to verify, then turn back on.

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: Otomatic (Moderator)
Date: June 26, 2025 05:55PM

> When I try and access the website
How ?

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

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (202.43.6.---)
Date: June 26, 2025 06:48PM

Disabling the firewall has no effect



Edited 1 time(s). Last edit at 06/30/2025 07:09PM by skipper.

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (202.43.6.---)
Date: June 26, 2025 06:48PM

I created incoming rules for httpd.exe on ports 80 and 443
Disabling the firewall has no effect

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (202.43.6.---)
Date: June 26, 2025 06:53PM

Otomatic Wrote:
-------------------------------------------------------
> > When I try and access the website
> How ?

I used Chrome browser and the URL [cornwalltaichi.co.uk] on a different machine to the one the server is on

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: Otomatic (Moderator)
Date: June 27, 2025 09:01AM

You need to make 'https://cornwalltaichi.co.uk' known (DNS) to the PCs on the network by modifying the hosts files of these PCs to include 'IP_PC_url cornwalltaichi.co.uk'.

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

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (---.dsl.in-addr.zen.co.uk)
Date: June 29, 2025 08:04PM

Otomatic Wrote:
-------------------------------------------------------
> You need to make 'https://cornwalltaichi.co.uk'
> known (DNS) to the PCs on the network by modifying
> the hosts files of these PCs to include 'IP_PC_url
> cornwalltaichi.co.uk'.

Hello,
Thank you for your patience.

Firstly, I dont understand this last statement, I should be able to see the website from any PC right, even my phone?

Secondly, I was wondering, I saw this list of Apache modules (left click, Apache, Apache modules) and some have a red cross in front of the name instead of a green tick:
fcgid_module,
socache_shmcb_module, and
ssl_module;

is this bad? I am guessing it is.

I previously uncommented the modules in httpd.conf:

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule fcgid_module modules/mod_fcgid.so

Finally, I am looking at this post about setting up SSL,

[forum.wampserver.com]

I already have a certificate file and key from cloudflare for this site, I am just wondering about this last section of the environment variables commands and I am not sure if I need to do this or not. It is this third part, I did the first two parts...

"Open a "as administrator" command window
And in this window type the following lines.
You can copy/paste in blocks of several lines, with an empty line at the end of the block, otherwise the last command of the block would not be executed.
Never close the command window before the procedure is completed, otherwise the environment variables previously declared by set would be lost.
Rem Wampserver installation variables
Rem To be modified according to your installation
set installdir=e:\wamp64
set apachever=2.4.57
...
Rem +-+-+-+-+-+-++ Certificates and server keys for a local site +-+-+-+-+-+
etc"


Now I no longer have the "forbidden" error, just:

This page isn't working HTTP ERROR 522

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (---.cdn77.com)
Date: June 29, 2025 09:31PM

Here are the additional details as requested:

1 - Windows version - Windows 11 Pro version 24H2 build 26100.4484 (64 bit)
2 - Wampserver version - 3.3.7 - 64 bit
3 - Apache version - 2.4.62.1
4 - PHP version - 8.3.14
5 - MySQL version - 9.1.0 (removed)
5a - MariaDB version 11.5.2
6 - Wampserver icon is Green

7 - c:\Windows\System32\drivers\etc\hosts active lines:
127.0.0.1 localhost
::1 localhost

127.0.0.1 cornwalltaichi.co.uk
::1 cornwalltaichi.co.uk

8 - Access to localhost WAMP server homepage: yes
8a - No error message at bottom of page

9 - Access to phpMyAdmin: yes

10 - Current error message if I log in from the server with Chrome browser using [cornwalltaichi.co.uk] as the URL:

This page isn't working
If the problem continues contact the site owner.
HTTP ERROR 522
Reload

11 - Windows 11 firewall



Edited 2 time(s). Last edit at 06/30/2025 07:07PM by skipper.

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: Otomatic (Moderator)
Date: June 30, 2025 08:55AM

> Firstly, I dont understand this last statement, I should be able to see the website from any PC right, even my phone?

Il your site 'https://cornwalltaichi.co.uk' is on PC with IP 192.168.0.10 you need to modify hosts of other PC to add :
192.168.0.10 cornwalltaichi.co.uk

For use from phone, see item 13 of Wampserver 3 - Some explanations

> some have a red cross in front of the name instead of a green tick:
Because they must not be deactivated.

Check that Chrome allows https access with a self-signed certificate.

In addition, if the site 'cornwalltaichi.co.uk' really exists, which seems to be the case, locally you cannot give the same name; it could be 'cornwalltaichi.co.internal'.

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

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: skipper (202.43.6.---)
Date: June 30, 2025 10:55AM

Yes, I am sorry for the misunderstanding.

I was just wondering what are the best security practices when making the site live, so anyone can see it, but at the same time to protect against unwarranted intrusions?

I have a certificate and key file from Cloudflare so I don't need to sign my own certificates.

Options: ReplyQuote
Re: 403 Forbidden error when accessing website
Posted by: Otomatic (Moderator)
Date: June 30, 2025 03:10PM

Hi,

> I was just wondering what are the best security practices when making the site live...

That's not my area of expertise!
Always use the latest versions of Apache and PHP. Do not modify httpd.conf. Carry out access modifications in VirtualHost.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.