Mosts of my webistes get 403 Error (Forbidden)

Cartitarul

Verified User
Joined
Jul 19, 2023
Messages
34
So most of my domains get the error 403 to be acurate its
1710427821237.png

the php version is 8.1 the permissions i think that there are set correct. Please help me
 
The website we spoke some weeks about loads similar to the way it did when your site's got hacked.
I'm afraid it happened again.

So
What does your htaccess say?
And run maldet again
 
No erico, I made sure that didnt happen again
So i fixed it, about the hacking situations, changed a loooooottt from ports to accerss, all of the passwords basecly reseted everything to be sure that it wont happen againg and adding lots of security and scans. Ty for helping me back then erico.
How do i fix it.
I runned
cd /usr/local/directadmin/scripts
./set_permissions.sh all
And these commands will not touch files uploaded by your users. and because of this and the permission i set everywhere to be sure that the hacking situation wont happen again i scriew all of the files permissions. Just found out that the command
./set_permissions.sh domaindir domain.com (change domain.com)
fixed everything. I just had to run this command.
Again its not a hacking situation for your curriosity heres the .htaccess
1710429066485.png
 
Server is unable to read the .htaccess file.

Please check your permissions. Which server are you running, Apache, nGinx, OLS?
If it's just Apache, you could try running the .htaccess support again.
Code:
cd /usr/local/directadmin/custombuild
./build update
./build mod_htscanner2
./build php
./build rewrite_confs
I'm not sure if that also works with nGinx or OLS, I don't use these.

Is it working again after this?
 
First of all htscanner2 i think is not compatible with php 8.1 but i still turned it on, and I did run the commands above first as I saw in previous encounters in this forum but didnt fix it. The one command that realy fixed it was one that I mentioned above
./set_permissions.sh domaindir domain.com (change domain.com)
it fixed everything for me. It was a problem from my part
 
First of all htscanner2 i think is not compatible with php 8.1
That's why I asked if you used Apache. There is a difference between mod_htscanner2 (from apache) and php_htscanner. And php_htscanner is indeed not compatible with php 8.1. But without mod_htscanner active, the .htaccess files won't work either.

it fixed everything for me. It was a problem from my part
Sorry, I've overseen that one, which is why I gave m suggestion. Good to see you fixed your issue already.
 
Back
Top