To check if Brotli is enabled on the server for the current PHP version: php -m | grep brotli To use it on the website add the following to the beginning of the .htaccess file: <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text...
In a recent article, I discussed many methods for removing the large ibdata file, one of which involves transferring the MySQL data directory to a different partition. However, if you do so, you must also inform PHPMyAdmin of the location of the...
503 Service Unavailable error on a shop hosted on shared cPanel server, apache error log: tail /usr/local/apache/logs/error_log 2022-04-29 11:04:21.728438 [T0] [31.32.33.34:49768-H3:3D8F707E6843B0DF-0#APVH_XXXXXX.com:443] Max retries has been...
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...
The x-powered-by option is included within the HTTP response header by default, which reveals exactly which version of PHP your site uses. So that not everyone else knows that we are using PHP or maybe an older version of PHP, we can hide this...
Here I will cover two approaches to increase file size and number of uploads limits in PHP: using the .htaccess fileusing the php.ini Why you should use .htaccess file As always, I recommend utilizing the. htaccess file because the directives will...
Sometimes it’s useful to enable visitors to your site to upload content, for example, photos, which can then be displayed on the site. Folders on a website, for example, an images folder will typically have permissions of 755, which means that...
25.11.2021 -exactly a year ago since the release of PHP 8.0 the version 8.1 is rolled out, and with it, new features and a significant speed increase. From the point of a Webmaster that uses Laravel or WordPress, it’s important to note that 8...
Recently I was dealing with migration of Open Journal Systems (OJS) website that wasn’t upgraded for 14 years but they decided that now is the time to do it. After the migration, the front-end was working smoothly, but on the backend when...
Here is how to fix the following error: Connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer! error_log: 2021-01-28 10:05:51.751 [INFO] [lsphp5] PID: 45143, add...