Author: Edgars Dunsdorfs
-
Battling a Persistent WordPress Hack: Tackling the Reappearing Suspicious .htaccess File
WordPress, the popular content management system (CMS), is a frequent target for hackers due to its widespread usage and open-source nature. One common hacking tactic involves inserting malicious code into the .htaccess file, a configuration file that controls website traffic and behavior. While removing the malicious code may initially resolve the issue, it often reappears,…
-
Edit Apache Error and Access Logs and add full website URL
To add the full website URL to your Apache access logs, you can use the %U variable in your log format string. The %U variable represents the full request URL, including the hostname. Here is an example of how to add the full website URL to your logs: This will configure the logs/access.log file to…
-
Safe and secure file permissions for WordPress
You are centos server administrator, and you want check, what is correct wordpress permissions and shell commands how to correct file permissions, .htaccess and wp-config.php The correct WordPress file permissions for WordPress are as follows: Directories Directories should be set to 755, which means that the owner (usually your web server user) has read, write,…