To block attacks to server_ip and port 443, add the following code to /etc/apache2/conf.d/includes/pre_virtualhost_global.conf <VirtualHost IP_HERE:443> <Location /> Deny from all Redirect "/" "" </Location> </VirtualHost>...
You can customize Apache (2.4) virtual hosts with Include Files, by creating new include.conf file for that user or for all vhosts on your server. 💡 In the following code snippets make sure to replace: <user> with the cpanel...
When downloading large files in NextCloud from a LiteSpeed server the download fails after 500mb. The following error is recorded in error logs: The size of dynamic response body is over the limit, abort! This is set in LiteSpeed Admin Console under...
At one point cPanel user has password-protected the public_html folder using the cPanel Directory Privacy option. Then He removed it at one time, however, cPanel didn’t rebuild the cache files for some reason inside userdata folder:...
503 error on user websites caused by CageFS Check the logs tail /var/log/apache2/stderr.log Fri Apr 29 12:32:02 2022 (95855): Fatal Error Unable to create lock file: Bad file descriptor (9) To fix the issue follow this guide: Apache: Fatal Error...
In plain English: PHP handlers are Apache modules that interpret and run PHP code. Using right PHP handler on your website can have a huge impact on the overall performance. In cPanel you can have different PHP versions with different handlers for...
Here in how to change the default Time Zone permanently in cPanel using the .htaccess file Step 1. First, check you current time yone settings using a simple .php script like this: <?php echo "Today is " . date("Y/m/d") . "<br>"; echo "The...
Here is a simple PHP script that you can use to test if a port is open on the server or not. <?php $host = $_SERVER['SERVER_ADDR']; $ports = array(21, 25, 80, 81, 110, 443, 3306); foreach ($ports as $port) { $connection = @fsockopen($host...
On a WordPress website that is protected with ModSecurity, when admin edits pages using Elementor or Gutenber in wp-admin dashboard, ModSecurity may falsely detect it as XSS attack. What we usually do is disable specific rules that create this false...
You can uninstall Apache Tomcat from either a Windows or Linux server with the following steps: Step 1: Stop the Tomcat service On Windows: On the machine where the product is installed, click Start > Control...