"403 Forbidden" on LAN after updating WAMP and Apache
Posted by: cheeseus (89.25.86.---)
Date: February 06, 2024 09:36PM

Hello,

I just updated my WAMP to version 3.3.3 and Apache to 2.4.58.1 x64. And I can no longer access my websites over LAN – I get the "403 Forbidden" error.

I checked – the settings in \wamp64\alias\phpmyadmin.conf remain unchanged:


Alias /phpmyadmin "c:/wamp64/apps/phpmyadmin5.2.1/"

<Directory "c:/wamp64/apps/phpmyadmin5.2.1/">
<ifDefine APACHE24>
Require local
Require ip 192.168.1
</ifDefine>
<ifDefine !APACHE24>
Order Deny,Allow
Deny from all
Allow from localhost ::1 127.0.0.1
Allow from 192.168.1
</ifDefine>
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>

I also noticed that all my virtual hosts have been deleted during the update – from both the

\wamp64\bin\apache\apache2.4.58.1\conf\extra\httpd-vhosts.conf – new version

and

\wamp64\bin\apache\apache2.4.54.2\conf\extra\httpd-vhosts.conf – old version.

This happened despite selecting the option to transfer the settings during the update, as I have done during previous updates.

I have now recreated all my virtual hosts and they work.


EDIT: I have also manually added "Require ip 192.168.1" to each virtual host, so it now looks like this:


"<VirtualHost *:80>
ServerName vinyls
DocumentRoot "c:/wamp64/www/vinyls"
<Directory "c:/wamp64/www/vinyls/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.1
</Directory>
</VirtualHost>


But the problem persists. Please help.



Edited 1 time(s). Last edit at 02/06/2024 09:55PM by cheeseus.

Options: ReplyQuote
Re: "403 Forbidden" on LAN after updating WAMP and Apache
Posted by: cheeseus (89.25.86.---)
Date: February 06, 2024 10:13PM

Problem solved!

I had forgotten to add "Require ip 192.168.1" also to the "localhost" definition:

<VirtualHost _default_:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
Require ip 192.168.1
</Directory>
</VirtualHost>

The question remains why the tool to copy vhost settings failed to work...

Options: ReplyQuote
Re: "403 Forbidden" on LAN after updating WAMP and Apache
Posted by: Otomatic (Moderator)
Date: February 07, 2024 09:18AM

Hi,

> The question remains why the tool to copy vhost settings failed to work...
NO.

In the extreme, I'm willing to believe that files can't be copied, but in no way can they be deleted; there are no instructions to delete files.
And if there's an error in the file copying process, it's recorded in the PHP logs.

On the other hand, the PhpMyAdmin 5.2.1 alias is definitely not the original one.
It includes instructions to support Apache 2.2, but this support has been removed as of PhpMyAdmin 4.9.3.

Do you use anti-virus and/or anti-malware software?

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

Options: ReplyQuote
Re: "403 Forbidden" on LAN after updating WAMP and Apache
Posted by: cheeseus (89.25.86.---)
Date: February 28, 2024 09:15PM

Otomatic Wrote:
-------------------------------------------------------
> Do you use anti-virus and/or anti-malware software?

Yes, I have Kaspersky. But I had it last year, too, when I upgraded Apache again. And this problem didn't occur.

I now have another problem but I will post a separate thread.

Options: ReplyQuote


Sorry, only registered users may post in this forum.