'Client Denied by Server Configuration and Apache Error log
I upgraded Magento 2 and trying to access the website, but I'm getting the error below...
This site can’t be reached. unexpectedly closed the connection. Try Checking the connection, Checking the proxy and the firewall, ERR_CONNECTION_CLOSED
I have run all Magento permissions Changed folders and files ownership
This is the error I found in Apache error log
[Thu Mar 31 19:26:40.740419 2022] [authz_core:error] [pid 20493] [client 45.155.204.146:59076] AH01630: client denied by server configuration: /home/.../public_html/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
Any suggestions?
Thanks
Solution 1:[1]
Double check your Apache httpd.conf and VirtualHost conf file (if you have one) that the DocumentRoot for the site is correct.
You may also have to update access rules.
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory /Path/to/Your/Site>
AllowOverride none
Require all granted
</Directory>
Apache2 Documentation for the error code
Edit: Wanted to add that the access rules may vary slightly depending on which version of Apache you’re running.
Be careful when changing ownership and permissions on your site’s directory hierarchy and files that you haven’t exposed sensitive things to the public.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
