Hello,
I don't even know how anyone else even registers on this site because I got javascript errors when trying to and it wouldn't populate the forms for me properly. Even if that had worked the entire process seemed way overly complex and wanted way too much info. Have you noticed a lack of activity recently?
Anyway, I cannot find anything about this anywhere or any solution that actually works. My .htaccess files are downloading when I try to visit them rather than denying access to them even though I have enabled options to deny access to them. They are WordPress websites.
cPanel Version 108.0.11
I used EasyApache to install Apache 2.4 and Nginx. PHP 8.0 and 8.1 but the sites are only using 8.0 for now.
AlmaLinux v8.7.0 STANDARD kvm
In cPanel I used WP Toolkit and installed WordPress. I did not make any configuration changes manually to cPanel or Apache or Nginx or most other things. I then noticed I could download the .htaccess file when I visited it in my browser. I then noticed in WP Toolkit there was a security option to disable this. I turned this on but it did not do anything.
I can see the lines are in the config files for both Apache and Nginx but they obviously do not work. I have even tried adding a section to the .htaccess file itself to block access to it but that also doesn't work. This is odd considering other files being blocked such as xmlrpc.php and wp-config.php and .user.ini all work fine.
I don't see any errors in logs that seem relevant either except in nginx I have a bunch of things that look like this:
2023/02/16 16:53:34 [crit] 376892#376892: unlink() "/var/cache/ea-nginx/proxy/REDACTED/f/98/7b18788fe1e8e07dc18af6f156e0698f" failed (2: No such file or directory)
In Apache I have this:
[Thu Feb 16 16:09:50.558644 2023] [ssl:warn] [pid 373713:tid 22473440681152] AH01909: server.example.com:443:0 server certificate does NOT include an ID which matches the server name
I don't know that those are related or what exactly to do to fix them either but I suspect they don't matter.
What would be causing this and how can I fix it?
Thank you for your time!
I don't even know how anyone else even registers on this site because I got javascript errors when trying to and it wouldn't populate the forms for me properly. Even if that had worked the entire process seemed way overly complex and wanted way too much info. Have you noticed a lack of activity recently?
Anyway, I cannot find anything about this anywhere or any solution that actually works. My .htaccess files are downloading when I try to visit them rather than denying access to them even though I have enabled options to deny access to them. They are WordPress websites.
cPanel Version 108.0.11
I used EasyApache to install Apache 2.4 and Nginx. PHP 8.0 and 8.1 but the sites are only using 8.0 for now.
AlmaLinux v8.7.0 STANDARD kvm
In cPanel I used WP Toolkit and installed WordPress. I did not make any configuration changes manually to cPanel or Apache or Nginx or most other things. I then noticed I could download the .htaccess file when I visited it in my browser. I then noticed in WP Toolkit there was a security option to disable this. I turned this on but it did not do anything.
I can see the lines are in the config files for both Apache and Nginx but they obviously do not work. I have even tried adding a section to the .htaccess file itself to block access to it but that also doesn't work. This is odd considering other files being blocked such as xmlrpc.php and wp-config.php and .user.ini all work fine.
I don't see any errors in logs that seem relevant either except in nginx I have a bunch of things that look like this:
2023/02/16 16:53:34 [crit] 376892#376892: unlink() "/var/cache/ea-nginx/proxy/REDACTED/f/98/7b18788fe1e8e07dc18af6f156e0698f" failed (2: No such file or directory)
In Apache I have this:
[Thu Feb 16 16:09:50.558644 2023] [ssl:warn] [pid 373713:tid 22473440681152] AH01909: server.example.com:443:0 server certificate does NOT include an ID which matches the server name
I don't know that those are related or what exactly to do to fix them either but I suspect they don't matter.
What would be causing this and how can I fix it?
Thank you for your time!